loading dll bmx

Archives Forums/Blitz3D SDK Programming/loading dll bmx

Warner(Posted 2008) [#1]
Using bmax, is it possible to load the b3d.dll from another folder, like projectfolder\dll ? Or would it possible to include the dll in the exe ?


Gabriel(Posted 2008) [#2]
You could put it in Windows/System32, although people might not like that and it makes uninstallation a problem ( you don't know if was there before you installed, so you can't leave it or remove it knowing 100% that you did the right thing. )

I think Molebox Pro can pack DLL's into the EXE.


Warner(Posted 2008) [#3]
I was thinking more along the lines of using IncBin, or at least finding some reference to the .dll's path somewhere in the .mod ?


Gabriel(Posted 2008) [#4]
You could use LoadLibrary and GetProcAddress to link dynamically instead of linking statically with Import. You'd have to try to see if this works in conjunction with IncBin. I've been led to believe it won't work, but haven't tested.


Warner(Posted 2008) [#5]
Okay, I will try it. Thanks.