Changing the bitmap for the Splash Window

Which parameter have i to pass to LoadBitmap() Function if i want to load a Bitmap file. On the MFC documentation, they
write :
This instruction doesn't work !
Who is Participating?
nil_dibConnect With a Mentor Commented:
LoadBitmap is NOT for loading a bitmap from a file!
It for laoding a bitmap from a resource.
Resource workshop -> insert new resource -> bitmap ( ID: e.g. IDB_BITMAP1 )
load the bitmap:
CBitmap bmp;

if you want to load a bitmap from a file look at
for sample code and bitmap classes.
Or take a look at the MFC sample Diblook.
Do you use the LoadBitmap from the CBitmap class
or the LoadBitmap from the Win32 API ?
hrenaudAuthor Commented:
I use the CBitmap class from the MFC.
hrenaudAuthor Commented:
In order to load a bitmap, i have to use the CFile class.
On the Web site, there is a sample to write a bitmap in a file :

I think the one you are searching for is
shows the drawing of bitmaps from BMP files.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.