-
February 20th, 2011, 10:44 AM
#1
messagebox problem with visual c++ 2008 express edition
Hi there
I am new to C++, and I am using vc++ 2008 express edition. When I compile the code with DEV C++ it works fine but not with MS express edition.
It leaves me an error as
: error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [28]' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
{
MessageBox(0,"My message Box", "MB",MB_OK);
}
Can any one leave a reply asap.
And 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
|