Maybe this will work
insert
#define DIRECTDRAW_VERSION 0x0700
before the include line
Very weird error
Visual C++ comes with an older version of the directx headers. Make sure that the path to your include directory and library directory in your paths is configured correctly. And that they are at the top.. missing storage class would suggest that it hasn''t got the directdraw7 stuff in there..
=*=
If things seem bad, think that they can get a whole load worse, and they don''t seem so bad anymore
=*=
=*=
If things seem bad, think that they can get a whole load worse, and they don''t seem so bad anymore
=*=
stdafx.h means you''re using a pre compiled header. #include <ddraw.h> should be in there, not your class. maybe that will help.
I haven''t programmed too much in c++ but I would think that maybe you need to put LPDIRECTDRAW DirectDraw under private:
so the new class would be
class TBreakout
{
private:
LPDIRECTDRAW7 DirectDraw;
public:
TBreakout();
}
maybe that would help?
so the new class would be
class TBreakout
{
private:
LPDIRECTDRAW7 DirectDraw;
public:
TBreakout();
}
maybe that would help?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement