#include "BIDIB.H"
HBITMAP CALLBACK LoadBitmapFromFile(LPTSTR szFileName)
Description
This function loads a bitmap from a file.
Parameters
|
LPTSTR |
szFileName |
Path and name of the bitmap to load. |
Additional Information
This example shows how to use the dll when loading statically including the header file. Otherwise if the dll is loaded dynamically, for further information read the “About the difference of static and dynamic library loading” section of the manual.
Return values
Handle to the loaded bitmap. NULL on error.
Requirements
Header : Declared in BiDIB.h; include BiDIB.h.
Library : Use BiDIB.lib.
DLLs : BiDIB.dll.
Code example
#include "BIDIB.H"
HBITMAP hBitmap;
hBitmap = LoadBitmapFromFile(szFile);
if (!hBitmap)
{
// error
…
}