A
antione
I am using VS2005, and when trying to do a simple message box display
I get the following error message.
error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const
char [40]' to 'LPCWSTR'
any sugestions on the problem here is a copy of the code I am using
#include "windows.h"
#include <iostream>
using namespace std;
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nShowCmd)
{
MessageBox(NULL, "MotoKo Kusanagi has hacked your system!",
"Public Security Section9", MB_OK | MB_ICONEXCLAMATION);
}
I get the following error message.
error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const
char [40]' to 'LPCWSTR'
any sugestions on the problem here is a copy of the code I am using
#include "windows.h"
#include <iostream>
using namespace std;
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nShowCmd)
{
MessageBox(NULL, "MotoKo Kusanagi has hacked your system!",
"Public Security Section9", MB_OK | MB_ICONEXCLAMATION);
}