Wrap a Library - How To

BlitzMax Forums/Brucey's Modules/Wrap a Library - How To

TaskMaster(Posted 2009) [#1]
Brucey

I was thinking about all this library wrapping you have done, and I have no clue how to go about doing it. I was wondering if you could shed some light...

First: What would be the simplest one of your modules, for someone to look at and get an idea how to do the wrap?

Second: Would it be possible for you to write up a quick and simple tutorial on how to wrap a library. Maybe take your simplest as an example and just quickly outline how you went about wrapping it.

Or, if there is already some sort of tutorial out there, please link it.

Thanks.


slenkar(Posted 2009) [#2]
I would like to know too


QuickSilva(Posted 2009) [#3]
Agreed, this would be most helpful.

Jason.


SLotman(Posted 2009) [#4]
Yup, would be very useful.

I specially don't understand when something is declared like function name(parameters)"functionname@4" - what is that @4 thing? Number of bytes used in return?

Also, I get a little confused on how to use Varptr to pass variables by reference... some insights would be pretty cool.


Ole JR(Posted 2009) [#5]
A decorated symbol name includes characters that distinguish how a public symbol has been declared.
For __stdcall functions, names include the "@" character and a decimal number that specifies the number of bytes in its function parameters.
And it's windows only..