MessageBox() in Visual C++?
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:
int WINAPI WinMain ( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd )
MessageBox ( NULL, "Hello World!", "Test", MB_OK );
I tried other sources, including MSDN, but they all use the same implementation of MessageBox().
Error 1 error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char ' to 'LPCWSTR' 5