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 )
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.
Good programmers don't comment their code. It was hard to write, should be hard to read.