I was trying to compile an example Windows program from the main web site (code duplicated below) in my Bloodshed Dev-C++ compiler, and I got the following error:
Here's the example program:
8 C:\Dev-Cpp\winDemo.cpp [Warning] passing NULL used for non-pointer converting 4 of `int MessageBoxA(HWND__*, const CHAR*, const CHAR*, UINT)'
The debugger found the error in the line starting with MessageBox. Does anyone have any ideas? Thanks
int APIENTRY WinMain(HINSTANCE hInstance,
MessageBox(NULL, "\tHello World!", "My first windows app", NULL);