How to write a wrapper?

Miscellaneous Forums/General Discussion/How to write a wrapper?

For the life of me, I can't find the post that has very explicit instructions on how to go about writing a wrapper for a dll. Can anyone find a good post about it?

Argh...it's been so long. So basically for Blitz3D all I have to do is make a .decls for the .dll. Right?

Just have a look at the "UserLibs.txt" in the "Blitz3D/Userlibs" folder. Everythings described in there, it's very easy to make.

I'd also wouldn't mind some sort of step-by-step tutorial that explains how abouts to do this sort of stuff with regards to any DLL, as I myself am struggling a bit trying to get a library setup to easily access XInput in B3d.

Isn't there a text file in the Userlibs folder with instructions?

Yep, and surprisingly... Its called 'Userlibs.txt'! :)

With instructions how to build a DLL in C++, explaination of the exported symbols and an example! ;)

Dabz