Jump to content

  • Log In with Google      Sign In   
  • Create Account


DirectDraw4


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
7 replies to this topic

#1 PsYcHoPrOg   Members   -  Reputation: 115

Like
Likes
Like

Posted 18 February 2000 - 12:49 AM

For some reason, When I use LPDIRECTDRAW4, my compiler doesn''t recogise it. I can only use LPDIRECTDRAW. What is wrong? Games are the path to another dimension.

Sponsor:

#2 Cloxs   Members   -  Reputation: 122

Like
Likes
Like

Posted 18 February 2000 - 02:17 AM

I''m not really sure. Make sure that your appending the number of the version you''re using to the end, like LPDIRECTDRAW7. Actually, are you just having problems calling DirectDrawCreate? If that''s the command you''re using, try DirectDrawCreateEx(); and it might work. Hope this helped a little bit.

#3 SiCrane   Moderators   -  Reputation: 9387

Like
Likes
Like

Posted 18 February 2000 - 04:00 AM

If you don''t have the later versions of DirectX, LPDIRECTDRAW4 isn''t a valid identifier. Make sure the latest header files come first in your include path.

#4 Pythius   Members   -  Reputation: 122

Like
Likes
Like

Posted 18 February 2000 - 06:31 AM

Yeah, you probably either need to make sure that your compiler path for .lib and .h files is set to wherever the DDraw4 is defined, and I believe that you do in fact have to use the DirectDrawCreateEx like this:

hr = DirectDrawCreateEx( NULL, &m_lpDD4, IID_IDirectDraw4, NULL );

That will give you a DirectDraw4 object. Another thing that you could do is initialize a regular LPDIRECTDRAW object like you obviously know how to do, then call QueryInterface on that to get your real DirectDraw object. That''s how you have to do it in NT to get DirectX 5 to work. And, yes, Microsoft says it doesn''t work, but it does.

Pythius

#5 SonicSilcion   Members   -  Reputation: 122

Like
Likes
Like

Posted 18 February 2000 - 06:42 AM

DirectDraw 4? Er, wasn''t the whole DirectX 4 package axed becuase of instability / incompatibility issues? [Sorry to go off topic]

#6 Mr K   Members   -  Reputation: 122

Like
Likes
Like

Posted 18 February 2000 - 07:06 AM

I''m sorry, but I too will get a bit off topic...
DIRECTDRAW4 isn''t the same as Direct X 4, which never came out. DIRECTDRAW4 is actually Direct X 6. The guys at Microsoft really has some logic going on their version numbers!!

#7 CoolMike   Members   -  Reputation: 122

Like
Likes
Like

Posted 18 February 2000 - 07:35 AM

LPDIRECTDRAW4 is not necessarily a part of DirectX 4.0. I use DirectX 5.0 right now and all my functions like that end like this: LPDIRECTDRAW2. The number is not necessarily the DirectX SDK version number.

#8 Bracket   Members   -  Reputation: 240

Like
Likes
Like

Posted 18 February 2000 - 09:31 AM

If you are using Visual C++, make sure that you have the DX SDK''s include directory listed FIRST in the settings box. Also make sure you are including the correct .libs - its usually easiest just to add them to the project with an explicit path (the Project->Add files thingy does this).




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS