I have no idea why it''s giving you this error... but I''m looking at my source code and notice that I always put HWND_DESKTOP where you put the first NULL in that function call.. I don''t think this will help at all but it''s worth a try
quote: 45:return EXIT_FAILURE;
EXIT_FAILURE is not defined... try just returning 0.. I don''t think it will hurt... much
go to http://lonecoyote.home.mindspring.com/win32programming_01.html so you can see the structure of the:
typedef struct __WNDCLASSEX { ...; }WNDCLASSEX;
There are a few fields that you have not defined ... try filling them in, they may not be any defaults set for these fields so set values for all of them.
View the world as i create it
[edited by - boysket on August 8, 2003 6:09:42 PM]
Since you've posted in the beginner forum and are just trying to draw a background picture in your program, i would rather advice you to have a look to GDI, it's quite simple and easy to use, not so fast but it has all u need!
Why? It's incorporated to windows, so no need to had other libs or include files instead of what you need to make a windows program! And it's much more easy to use than DirectDraw,Direct3D,OpenGL,... It's a really good place to start!
"...and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces."----------Scott Meyers, "Effective C++"