Unable to load bitmap
-
Hi, I'm trying to load a bitmap by following code but it always returns me a NULL handle LoadBitmap(NULL,"bitmapfile.bmp"); any pointers for how to make the code work? P.S. Bitmap is in application folder, also I have tried with complete path. Ciao - Nilesh
-
Hi, I'm trying to load a bitmap by following code but it always returns me a NULL handle LoadBitmap(NULL,"bitmapfile.bmp"); any pointers for how to make the code work? P.S. Bitmap is in application folder, also I have tried with complete path. Ciao - Nilesh
LoadBitmap is used for loading resource bitmaps. Try http://support.microsoft.com/kb/q158898/
:suss: Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!
-
Hi, I'm trying to load a bitmap by following code but it always returns me a NULL handle LoadBitmap(NULL,"bitmapfile.bmp"); any pointers for how to make the code work? P.S. Bitmap is in application folder, also I have tried with complete path. Ciao - Nilesh
Use LoadImage API if you want to load from the disk. Hope this helps, Usman.
-
LoadBitmap is used for loading resource bitmaps. Try http://support.microsoft.com/kb/q158898/
:suss: Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!