Original Post
I''m probably overlooking something stupid but I can''t seem to find it. here''s my problem. I''m trying to comile a small program using DDraw. I''m getting an error on the following lines.
LPDIRECTDRAW4 m_lpDirectDraw4;
LPDIRECTDRAWSURFACE4 m_lpddPrimary;
LPDIRECTDRAWSURFACE4 m_lpddBackBuffer;
DDRAWSURFACEDESC4 m_ddsd;
I''ve #included the ddraw.h file but VC++ is giving me errors as if it doesnt see the type definitions in the header file. However if I change my code to this it compiles errorless.
LPDIRECTDRAW m_lpDirectDraw4;
LPDIRECTDRAWSURFACE m_lpddPrimary;
LPDIRECTDRAWSURFACE m_lpddBackBuffer;
DDRAWSURFACEDESC m_ddsd;
BTW those arent the interfaces I want to use. This makes no sense to me. Both ways i''ve listed here should work. What''s even worse I tried to compule Microsofts DDraw samples...got the same thing. Keep in mind I DO have the proper path for the header file. Any thoughts?