How to use dlls?
BlitzPlus Forums/BlitzPlus Programming/How to use dlls?
| ||
Let's say I find a dll, how would I be able to implement it into Blitz? |
| ||
VC6 and 2008 dlls but I think older mingw gcc version would work. If you're talking about wrappers there's a lot of discussion of basic wrapping functions just do some search. More info here: http://www.blitzbasic.com/sdkspecs/sdkspecs.php |
| ||
Let's say I find a dll, how would I be able to implement it into Blitz? To start, you can use the NirSoft Dll Export viewer to see what functions are inside a DLL that you choose. download 32bit & 64bit versions of DLL export viewer : http://tinyurl.com/h6lru6w |
| ||
@virtlands Exactly what I was looking for, thanks so much! |
| ||
Without knowing the return values and the parameters of those procedures (the functions) in the DLL, I think it's impossible to use them. This kind of information you can only obtain from the people that made the DLL, like in the form of documentation or example code. BlitzPlus has a CallDLL function that can be used, but it's obsolete. The preferred way of interfacing with DLLs is to use the userlib system explained in that link in post #2 |
| ||
Quick and related question: Is there a way to quickly generate DECLS for B3D? |
| ||
I don't know of any other than writing it by hand, but maybe someone else does. |