[RESOLVED] Use DX9 with VB6!
Look at my port for DX9 with VB6:
Here my dll, port (moduls and classes), some tutorials and shader compiler.
Only shader compiler need d3dx9_37.dll, but you program with shaders not need this!
It is worked in XP, Vista and Windows7.
Demo:
This demo need PS2_0.
All this free for use.
Links removed.
All links in post 14!
Use DX9 with VB6! - now calling any d3dx9 version :)
The source code is Mikle's water render example with this addition.
Mikle's example uses GDIPlus to load the image and memory copies to the texture which means it stays in System Mem (and the program depends on GDIPlus).
One of the drawbacks with this technic was that some of the most convenient functions are in the D3DX9_XX dlls.
However since we dont know which dll is on the machine we cannot just declare the API.
I have made a way to call any of the D3DX9 API methods and in this example I have implemented a call to D3DX9CreateTextureFromFile.
The new code added to this example is cD3DX9.cls and cFuncCall.cls (used only by cD3DX9.cls) and all code is in VB6.
cD3DX9.InitD3DX method attempts to load any of these versions
D3DX9_43.DLL, D3DX9_42.DLL, D3DX9_39.DLL, D3DX9_35.DLL D3DX9_24.DLL
You can easily add more if you like but generally you might want to control which DLLs is loaded.
Property D3DXName returns the name of the loaded dll.
and then I have added the common CreateTextureFromFile in the format we used in dx8vb only know returning a Direct3dTexture9 :cool:
Public Function CreateTextureFromFile(d3dDev As Direct3DDevice9, fName As String) As Direct3DTexture9
Source:
Water_withDynamicD3DX9_v1.zip
Note: I did not implement a substitution for Loading the VolumeTextures but that should be fairly straight forward and I leave it as an excercise for the currious minds :)
Enjoy :wave:
Re: [RESOLVED] Use DX9 with VB6!
Nightwalker83
Ok!
This thread was not originally contained the problem is - the announcement.
Re: [RESOLVED] Use DX9 with VB6!
can anyone give me a link to all files posted by Mikle please? Every link he posted not working anymore :(
Thank's
Re: [RESOLVED] Use DX9 with VB6!
This is the latest version of the engine:
http://mikle.ucoz.com/load/0-0-0-7-20
Re: [RESOLVED] Use DX9 with VB6!
Thank's Mikle, you are very helpfull :thumb: