DirectX Problem

Advanced game related topics
Motu
Enthusiast
Enthusiast
Posts: 160
Joined: Tue Oct 19, 2004 12:24 pm

DirectX Problem

Post by Motu »

I have a problem that I find a little bit strange. I want to create a DirectX9 Device. This works fine:

hLib=OpenLibrary(1,"D3D9.dll")
If hLib = 0
Error_Msg("Cannot load d3d9.dll")
EndIf
D3D = CallFunction(1,"Direct3DCreate9",#D3D_SDK_VERSION)

But this:

D3D = Direct3DCreate9_(#D3D_SDK_VERSION)

crash my system. Is there any difference between these two methods?

I am using Purebasic 3.92 BETA
Moonshine
Enthusiast
Enthusiast
Posts: 263
Joined: Tue May 25, 2004 12:13 am
Location: UK

Post by Moonshine »

Have you got the correct DLL's in the right places?
Mark my words, when you least expect it, your uppance will come...
Motu
Enthusiast
Enthusiast
Posts: 160
Joined: Tue Oct 19, 2004 12:24 pm

Yes...

Post by Motu »

All Dlls right and everything fine. The bug does not happen with 3.90 so i guess it's a purebasic bug :)
It' allready reported.

Anyway, thx for your help
Post Reply