943,300 Members | Top Members by Rank

Ad:
Nov 3rd, 2003
0

Problems with DirectX and VC++

Expand Post »
I've got a problem with Microsoft VC++ 6.0 and DirectX. I made my last game using Microsoft VC++ 4.0. I had no problems. I was using DirectX 6.1 SDK and DirectDraw4 functions. Well I'm upgrading my game engine to use DirectX 8.1 SDK. I need to fix a problem that comes up with DirectDraw7. When I compile my engine using the new DirectX DirectDraw7 function, It says that IID_IDIRECTDRAW7 is undeclared. Well, I have ddraw.h included in the project and #include <ddraw.h> in the file. Why it's not finding it I don't know. It finds the DirectDraw function(s) but not the DirectDraw7 function(s). Anyone know whats wrong? I'm using DirectDrawCreateEx() function to create the DirectDraw object.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ShadowBranch is offline Offline
4 posts
since Nov 2003
Dec 18th, 2003
0

Re: Problems with DirectX and VC++

Hmmm....

Well, instead of using DirectX 8.1, you should use DirectX 9.

Did you replace the ddraw.h in DirectDraw 4 with the one for DirectDraw 9?

I looked at my own DirectX game, and found this:

IID_IDirectDraw7

Seeing as how it's case sensitive(or at least that's how my compiler works), you should try uncapitalizing the middle of the words.
Reputation Points: 12
Solved Threads: 0
Newbie Poster
Mike29936 is offline Offline
22 posts
since Sep 2003

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Game Development Forum Timeline: converting BMPs to AVI
Next Thread in Game Development Forum Timeline: how to use DirectX in VC++





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC