How to use dlls?

BlitzPlus Forums/BlitzPlus Programming/How to use dlls?

Naughtical(Posted 2016) [#1]
Let's say I find a dll, how would I be able to implement it into Blitz?


RustyKristi(Posted 2016) [#2]
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


virtlands(Posted 2016) [#3]
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


Naughtical(Posted 2016) [#4]
@virtlands Exactly what I was looking for, thanks so much!


Kryzon(Posted 2016) [#5]
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


RustyKristi(Posted 2016) [#6]
Quick and related question: Is there a way to quickly generate DECLS for B3D?


Kryzon(Posted 2016) [#7]
I don't know of any other than writing it by hand, but maybe someone else does.