Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

DirectX Programming

I am learning how to use DirectX in my free time, and there's one thing that's stumping me. This is the WinMain() function that my tutorial book says I should use for this example:
[CODE]int PASCAL WinMain( HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)

{
MSG msg; // windows message structure

// Initialize the application, exit on failure

if(!Init(hInstance, nCmdShow)) {
Cleanup()
return FALSE;
}

// handle the message loop till we exit

while (GetMessage(&msg, NULL, NULL, NULL)) {
TranslateMessage(&msg);
DispatchMessage(&msg);
}

// exit returning final message

return (msg.wParam);
}
[/CODE]

The errors I am getting are:
--------------------Configuration: DirectMFC - Win32 Debug--------------------
Compiling...
variables.cpp
e:microsoft visual studiomyprojectsdirectmfcvariables.cpp(58) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.

DirectMFC.exe - 1 error(s), 0 warning(s)

I named it "DirectMFC" because I am trying to use MFC to create the blitter. I won't use this in full screen, but it tells me to edit code for a .rc file, but I can't figure out how.
Sign In or Register to comment.