I am going through a tutorial on DirectX and one continual problem is the windows.h file not being picked up so I get 'unresolved externals' etc.. Presumably this header file should be in the C drive not created by the user, so do I just download something? Here is the code
Code:
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nShowCmd)
{
// create a "Hello World" message box using MessageBox()
MessageBox(NULL,
L"Hello World!",
L"Just another Hello World program!",
MB_ICONEXCLAMATION | MB_OK);
// return 0 to Windows
return 0;
}
Should have said I am using VC++ 2008 Express edition.