Can BlitzMax be used to create a Windows .DLL?

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

ahobbit(Posted 2005) [#1]
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?


MrCredo(Posted 2005) [#2]
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


Hotcakes(Posted 2005) [#3]
It is theoretically possible, but I'm not sure if anyone has achieved this.


Beaker(Posted 2005) [#4]
It has been done. Do a search and it will show up.


JoshK(Posted 2005) [#5]
So it sounds like there will be problems if you do anything complicated with it.


ahobbit(Posted 2005) [#6]
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.


Dreamora(Posted 2005) [#7]
Its not BM compiling to DLL but a simple command call of the linker to link the .a you build to a DLL


BlitzSupport(Posted 2005) [#8]
It's here...


ahobbit(Posted 2005) [#9]
Thanks for the info, guys!