How to create own BlitzPlus libs?

BlitzPlus Forums/BlitzPlus Beginners Area/How to create own BlitzPlus libs?

My C is a bit rusty I think, but a lib for this should be something like this:
.lib "test.dll"

Test_Call1(s1$, s2$, value)
Test_Call2(s1$, s2$, s3$, v1, v2)
Test_Call3(s$)
Test_Call4(s$)
Test_Call5(s$)

This file should be saved as a ".decls" file, together with the .dll, in the \userlibs directory. (C:\program files\blitzsometing\userlibs)

I'm not sure when exactly, but sometimes you need to add an '@' followed by the size of the parameters in bytes. Ie: "Test_Call1@4"
Integers and floats are 4 bytes, I don't know if there is a fixed size for strings.

Have you seen the docs about .decls ? http://www.blitzbasic.com/sdkspecs/sdkspecs/userlibs_specs.txt