The GflLib use with Visual Basic requires the use of modules. See examples for more informations, or contact us by e-mail.
GflLib.bas
This file contains the API declarations, strcutures and contants required by GflLib and GflLibs.
GflLibExt.bas
This file contains functions required to use GflLib with Visual Basic.
| extGetGflBitmapFromPtr | Retrieves the data of a GFL_BITMAP structure from a pointer |
| extGetGflColorMapFromPtr | Retrieves the data of a GFL_COLORMAP structure from a pointer |
| extGetGflComments | Retrieves a dynamic array of string (comments) from a pointer |
| extGetStr | Retrieves a string from a pointer |
| extRTN | Trims and erases the NULL characters of a C string |
| extFarProc | Gets the pointer on a Visual Basic function with AddressOf |
| extShowBitmapOnDc | Display a GFL_BITMAP in a graphical context. |
GflLibe.bas
This file contains the API declarations, strcutures and contants required by GflLibe, extension of GflLib.
GflLibeExt.bas
This file contains functions required to use GflLibe with Visual Basic.
| extGetDIBFromPtr | Retrieve a DIB from a pointer |
| extShowBitmapOnDcEx | Display a GFL_BITMAP in a graphical context by using the ConvertBitmapIntoDIB function (GflLibe) (same as extShowBitmapIntoDC). |
| extShowTransparencyBitmapOnDCEx | Display a transparency GFL_BITMAP in a graphical context by using the ConvertBitmapIntoDIB function (GflLibe). |
GflReadData.bas
This file contains functions required to use callbacks in LoadBitmapFromHandle and LoadPreviewFromHandle with Visual Basic.
| extLoadFile | Loads a file into a READ_DATA. |
| extSetDataToPtr | Copy the data of a READ_DATA structure in memory. |
| READ_ReadFunction | The function which reads the data. |
| READ_TellFunction | The function which gives the position of reading. |
| READ_SeekFunction | The function which sets the position. |
GflSaveData.bas
This file contains functions required to use callbacks in SaveBitmapIntoHandle with Visual Basic.
| extSaveFile | Saves the data from a pointer on a SAVE_DATA structure in a file. |
| extWriteArray | Saves the data from a pointer in a array. |
| extGetDataToPtr | Copy in a SAVE_DATA structure the data in memory. |
| SAVE_ReadFunction | The function which writes the data. |
| SAVE_TellFunction | The function which gives the position of writing. |
| SAVE_SeekFunction | The function which sets the position. |