are you sure that #1 give me a HBITMAP, because i get a compiler error, something about converting LPCWSTR, and can u please give me a random sample code
i keep getting an error that menu is supposed to be a HANDLE and not a HBITMAP,, i read the LoadImage documentation, and it also says that it returns a HANDLE not a HBITMAP ..
Look at the C++ Sourcecode page of this site: http://www.cplusplus.com/src/ :scroll to GIF View, it gives an example of how to load and display a BMP there.
Have you created the window? It not then begin with loading its icon.
It works pretty similar to one in question in conjunction with The Brush context.
im trying to create a console application that would load a bitmap from file and draw it to the screen at the coordinates 512,384 can somebody just write a sample program or help me out with the code that i wrote untill now, to be honest im getting really fustrated, and ive been trying to do this fore 8 days now ..
It isn't worth to feel like that. The logic underneath is quite simple.
A graphic device is one for all programs no matter what GUI or text meaning
an OS has no choice except for lining them up in some kind of queue that is The Device
context, I believe, which is not something visible on a screen.
Begin from the window creation then make sure it is created and ready to be painted on before anything appears on a screen.
At last select the brush&pen starting the drawing still images on an user demand
on the window.