Very weird error

Started by
13 comments, last by Koen VB 21 years, 4 months ago
Maybe this will work

insert
#define DIRECTDRAW_VERSION 0x0700
before the include line

Advertisement
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

=*=
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?
I have solved the problem. It''s like hammerstein_02 said: the include directories for the DirectX headers were not on top of the list. I have moved them and now everything works fine. Thanks for the help, everybody!

---------
http://users.pandora.be/koen.van.baelen
---------

This topic is closed to new replies.

Advertisement