Page 1 of 1

DirectX

Posted: Thu May 26, 2005 8:43 pm
by Polo
In order to use Direct3D with Purebasic, we need to use something like
dx=OpenLibrary(#pb_any,"d3d7.dll") ;For D3D 7
What I'm wondering is if we have DirectX9, how will it found d3d7 ??
Same, if someone has DX7 and we're calling DX9, what will happen (i know this is strange :))

Re: DirectX

Posted: Thu May 26, 2005 8:56 pm
by traumatic
d3d7.dll? ;)

To initialize DirectDraw you had to call DirectDrawCreateEx from
ddraw.dll, to get Direct3D you had do a QueryInterface from
IDirectDraw7. ddraw.dll still exists in DX9, so no problem here.

Same for d3d8.dll, it comes with DX9 as well. You should never run
into compatibility issues as long as Microsoft doesn't drop any of the
mentioned DLLs.

Posted: Thu May 26, 2005 9:01 pm
by Polo
Ok I thought when we were installing DX9 it was removing DX8 ;)
Thanks for the explainations !