thank you, that helped a lot. but once again im getting some errors. but think time, they are link errors.
main.obj : error LNK2005: "struct HWND__ * hwnd" (?hwnd@@3PAUHWND__@@A) already defined in clsWindow.obj
main.obj : error LNK2005: "struct IDirectDraw * lpDD" (?lpDD@@3PAUIDirectDraw@@A) already defined in clsWindow.obj
i dont see where im defining it twice. here is the only code where it is defined. it is in a header file.
Code:
#include <windows.h>
#include <windowsx.h> // For windows messages and API's
#include <ddraw.h> // Direct Draw header
bool Fail(HWND hwnd, char *szMsg);
bool ImageLoad(LPDIRECTDRAWSURFACE lpDDS, LPSTR szImage);
LPDIRECTDRAW lpDD; // DirectDraw object
HWND
the only thing i can think of is that it is using it twice. how can i fix this?
TIA
Echo
p.s. why can't i registor? it wont take my email. it says its invailed.