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)) {
return FALSE;

// handle the message loop till we exit

while (GetMessage(&msg, NULL, NULL, NULL)) {

// exit returning final message

return (msg.wParam);

The errors I am getting are:
--------------------Configuration: DirectMFC - Win32 Debug--------------------
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.

Howdy, Stranger!

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