Hello,
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:Code: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? ThanksCode:#include <windows.h> int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { MessageBox(NULL, "\tHello World!", "My first windows app", NULL); return 0; }![]()



LinkBack URL
About LinkBacks



