Skip to main content
GameDev.net gamedev.net
🔒 Locked

Direct Draw

Started by Gouky Mar 15, 2002 at 10:12 AM 8 replies 1.2k views
Original Post
Gouky
Gouky
hi everybody, i''m actually trying to use direct draw ( using the DX 8.0 SKD ) but i''ve got a problem on this line : DirectDrawCreateEx( NULL, &lpdd7, IID_IDirectDraw7, NULL ); i''m getting these errors : C:\temp\Taquin_Step2\taquin.c(73) : error C2115: ''function'' : incompatible types C:\temp\Taquin_Step2\taquin.c(73) : warning C4024: ''DirectDrawCreateEx'' : different types for formal and actual parameter 3 if somebody can help ---- Gouky
----Gouky
Gouky
Gouky
Nope i have added it but still getting :

C:\temp\Taquin_Step2\taquin.c(75) : error C2115: ''function'' : incompatible types
C:\temp\Taquin_Step2\taquin.c(75) : warning C4024: ''DirectDrawCreateEx'' : different types for formal and actual parameter 3

->DirectDrawCreateEx( NULL, &lpdd7, IID_IDirectDraw7, NULL );

( i hate directx )

----
Gouky
----Gouky
MindWipe
MindWipe
hr = DirectDrawCreateEx(NULL, (VOID**)&lpDD, IID_IDirectDraw7, NULL);

try that

"If it doesn''t fit, force it; if it breaks, it needed replacement anyway."
"To some its a six-pack, to me it's a support group."
Gouky
Gouky
Still not working

C:\temp\Taquin_Step2\taquin.c(76) : error C2115: ''function'' : incompatible types
C:\temp\Taquin_Step2\taquin.c(76) : warning C4024: ''DirectDrawCreateEx'' : different types for formal and actual parameter 3

----
Gouky
----Gouky
Arion
Arion
Bit of a pian sometimes ain''t it.

Before anything is setup I use:

#pragma comment(lib, "dxguid.lib")
#pragma comment(lib, "ddraw.lib")

To ensure those libraries are included before I include the header files.

_________________________________________________________________

In my initialization I have:

LPDIRECTDRAW7 lpDD;

DirectDrawCreateEx( NULL, (VOID**)&lpDD, IID_IDirectDraw7, NULL );

Give it a whirl.

[woops] MindWipe snuck one in there, and my replies don''t seem to be replying. [/woops]

Good Luck, Guy


"Who lives in a pineapple under the sea ?"
Gouky
Gouky
When i''m doing this stuff, i''m getting incomptabile types :/ it stuck on IID_IDirectDraw7 :/


i think i''m going to hang myself

----
Gouky
----Gouky
Gouky
Gouky
Its working !! with this :

hResult = DirectDrawCreateEx(NULL, &lpdd7, &IID_IDirectDraw7, NULL );

arrgh !

----
Gouky
----Gouky
Gouky
Gouky
I''m getting a new problem :/

now i''m trying to set the cooperative mode but i''m getting this :

C:\temp\Taquin_Step2\taquin.c(82) : error C2039: ''SetCooperativeLevel'' : is not a member of ''IDirectDraw7''
c:\dxsdk\include\ddraw.h(1243) : see declaration of ''IDirectDraw7''$

for this :

lpdd7->SetCooperativeLevel( hwnd, DDSCL_EXCLUSIVE|DDSCL_FULLSCREEN );

I''m going crazy !

----
Gouky
----Gouky

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.