BlitzMax/DLL

From Unreal Software English Wiki
Jump to: navigation, search

In the following tutorial you will be taught how to make a DLL using BlitzMax.

Requirements

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"
Return True
EndFunction

Links

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox