|
-
February 28th, 2006, 10:52 PM
#1
Problems with first Win32... pls help!
Hello everyone!
I'm a newbie to windows programming, having migrated from Linux, and am having problems even with my Hello World app... Could someoen please tell me what I am doing wrong here... thanks!
#include <windows.h>
int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nShowCmd )
{
MessageBox( NULL, "I finally work!",
"Hello World", MB_OK | MB_ICONEXCLAMATION ) ;
}
The error says Error 1 error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [16]' to 'LPCWSTR'
Thanks in advance!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|