Original Post
Well I'm going into directX, here's my code: // include the basic windows header files and the Direct3D header file #include #include #include // include the Direct3D Library file #pragma comment (lib, "d3d9.lib") // global declarations LPDIRECT3D9 d3d; // the pointer to our Direct3D interface LPDIRECT3DDEVICE9 d3ddev; // the pointer to the device class // function prototypes void initD3D(HWND hWnd); // sets up and initializes Direct3D void render_frame(void); // renders a single frame void cleanD3D(void); // closes Direct3D and releases memory // the WindowProc function prototype LRESULT CALLBACK WindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); Here's my error: ------ Build started: Project: direct1, Configuration: Debug Win32 ------ Compiling... direct2.cpp c:\documents and settings\compaq_owner\my documents\visual studio 2005\projects\direct1\direct1\direct2.cpp(20) : fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source? Build log was saved at "file://c:\Documents and Settings\Compaq_Owner\My Documents\Visual Studio 2005\Projects\direct1\direct1\Debug\BuildLog.htm" direct1 - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== thank you EDIT: Please use more appropriate and descriptive subjects for your threads in future. [Edited by - jollyjeffers on March 1, 2008 12:30:24 PM]