Can BlitzMax be used to create a Windows .DLL?

BlitzMax Forums/BlitzMax Beginners Area/Can BlitzMax be used to create a Windows .DLL?

To all you BlitzMax gurus out there:

I would like to use BlitzMax with the 3Impact game engine. However, in order to do this, BlitzMax must be able to create a Windows .DLL file, which the 3Impact game engine uses to call certain predefined functions in the .DLL file [i.e. Init(), Run(), Exit(), PostExit()] that implement the game.

Is it possible to create Windows .DLL files with BlitzMax?

yes - not direkt and not very comfortable. but you need commandline-tools or other tools for this... you must search in forum for such dll-tool

It is theoretically possible, but I'm not sure if anyone has achieved this.

It has been done. Do a search and it will show up.

So it sounds like there will be problems if you do anything complicated with it.

Beaker, could you post a link showing where someone has compiled a BlitzMax application to a .DLL file? I've done a search, and it only seemed to turn up references to BlitzMax calling other .DLLs, as opposed to compiling the BlitzMax application TO a .DLL file itself.

Its not BM compiling to DLL but a simple command call of the linker to link the .a you build to a DLL

It's here...

Thanks for the info, guys!