Hello.
I recently started to learn Win32 programming through web tutorials, and since I changed from Dev-C++ to Visual Studio 2005, my code doesn't work anymore.
This code compiles and runs fine in Dev-C++, but somehow it doesn't in Visual C++.
Here's the error message:Code:#include <windows.h> int WINAPI WinMain ( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd ) { MessageBox ( NULL, "Hello World!", "Test", MB_OK ); return 0; }
I tried other sources, including MSDN, but they all use the same implementation of MessageBox().Code:Error 1 error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [13]' to 'LPCWSTR' 5
Thanks.