Page 1 of 1

DirectX Problem

Posted: Tue Oct 19, 2004 12:31 pm
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

Posted: Tue Oct 19, 2004 3:19 pm
by Moonshine
Have you got the correct DLL's in the right places?

Yes...

Posted: Wed Oct 20, 2004 11:26 am
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