#define WIN32_LEAN_AND_MEAN
#include "stdafx.h"
#include <windows.h>
#include <windowsx.h>
int WINAPI WinMain ( HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow )
{
MessageBox ( NULL,
"Title",
"Hello",
MB_OK | MB_ICONEXCLAMATION );
return(0);
}
I'm having issues with this code. Here's the error according to the compiler
error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [6]' to 'LPCWSTR'
The error is on this line
MB_OK | MB_ICONEXCLAMATION );