Salve,
sto su visual c++ express e ho provato ad eseguire questo file in un nuovo progetto win32 application:
codice:
#include <windows.h>
#define WIN32_LEAN_AND_MEAN
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,LPSTR lpCmdLine, int nCmdShow)
{
MessageBox(0, "Hello World!!",
"Un messaggio", MB_OK);
return 0;
}
ma mi è andatto in errore al momento del debug dicendo:
error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [14]' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
dove sbaglio?
grazie