BlitzMax Update V1.22 Up!

BlitzMax Forums/BlitzMax Programming/BlitzMax Update V1.22 Up!

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

here's how to make a dll,

copy dllcrt2.o from your MinGW\lib to your BlitzMax\lib folder then save the following to files in the same directory.

dlltest.bmx
Function AddIntegers(int1,int2)
	Return int1+int2
End Function


dlltest.def
EXPORTS
AddIntegers=bb_AddIntegers


then in the command prompt,
cd C:\BlitzMax\bin
bmk makelib C:\dlltest.bmx