In the following tutorial you will be taught how to make a DLL using BlitzMax.
You need BlitzMax version 1.36 or higher and Windows XP or higher, a copy of makedll's source code
The easy way
The makedll program is used to compile a .bmx source code and generate a DLL output file. You must write 'EXPORT after each function as a sign that this function must be exported to the DLL's functions.
If you're having troubles when compiling your BlitzMax source file using the makedll, here you have the following script that you must add to your program.
Function DllMain(hinstDLL:Byte Ptr,fdwReason:Int,lpvReserved:Byte Ptr) "win32"