I keep getting this error for this code:
// Beginning Game Programming, Second Edition
// Chapter 4
// GameLoop project
#include
#include
#include
#include
#include
#define APPTITLE “Game Loop”
//function prototypes
LRESULT CALLBACK WinProc(HWND,UINT,WPARAM,LPARAM):
ATOM MyRegisterClass(HINSTANCE);
BOOL InitInstance(HINSTANCE,int);
void DrawBitmap(HDC,char*,int,int);
void Game_Init();
void Game_Run();
void Game_End();
//local variables
HWND global_hwnd;
HDC global_hdc;
//the window event callback function
LRESULT CALLBACK WinProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
global_hwnd = hWnd;
global_hdc = GetDC(hWnd);
switch (message)
{
case [...]
February 12, 2010 |
1 comment |
View Post