Userlibs and nonexistent DLLs

Blitz3D Forums/Blitz3D Programming/Userlibs and nonexistent DLLs

Picklesworth(Posted 2005) [#1]
Is it possible to build a program which uses a userlib for a DLL that is not actually in the userlibs folder?
I realize that CallDLL could be used for such a task, but CallDLL is ancient and horrible.

Or do userlibs need to have the correct DLL available during compilation in order to work right?
Fiddling tells me that I can swap between different builds of a DLL without Blitz whining about having been built with another one in the userlibs folder.


Ferret(Posted 2005) [#2]
I don't know that much about using dlls, but ill try to explain anyway.

I usualy put a dll in the root of mi project and distribute the dll with it, easy and it works.

If you make a bb uselib for it,i think blitz gets the path of the dll from there and you can put it where you want, but you still have to distribute the dll with the project.

If there is a dll used in your project, you always need the dll on the system you want your program to run on.
Same thing with compiling.