BMK addon : DLL maker

BlitzMax Forums/BlitzMax Programming/BMK addon : DLL maker

Red(Posted 2005) [#1]
I need testers


Red(Posted 2005) [#2]
BMK addon : here

Needed App:
--------------
- Bmax 1.10 or higher
- minGW
Add 'c:/mingw/bin' to your PATH env variable
Add 'c:/mingw' to your MINGW env variable

When you finished setting, you must restart Bmax.

How to install:
--------------
1 - Extract 'winres.mod' to your 'mod/pub' directory.
2 - Extract 'windll.mod' to your 'mod/pub' directory.
3 - Rename 'bmk.exe' to 'bmkOLD.exe' in your 'bin' directory.
4 - Extract the new 'bmk.exe' to your 'bin' directory.

Example : myfunc.dll.bmx
Import BRL.math

Function Filer(f)
	Return Log(f)
End Function 

Function Add:Int(param1:Int,param2:Int)
	Return param1+param2
End Function


Compilation output:



SillyPutty(Posted 2005) [#3]
err, where is the program ?

I would love to test.


Red(Posted 2005) [#4]
Ok try it
MinGW must be installed correctly.


SillyPutty(Posted 2005) [#5]
thanks :) will test for you


Red(Posted 2005) [#6]
Lib Importer should be improved
Does it work ?


Perturbatio(Posted 2005) [#7]
windll Includes "C:/bmax/samples/PERSO/quickdll/myfunc.dll.inc.bmx"

might want to correct that so it works on everyone's machine :)


Red(Posted 2005) [#8]
this line is updated by my bmk before launching bmkOLD


Perturbatio(Posted 2005) [#9]
ok, I'll let you off then :)


Red(Posted 2005) [#10]
I've some problems with GCC and static libs.
import BRL.filesystem '-> This lib uses some others.



DStastny(Posted 2005) [#11]
Whats the behavior of the memory mananagment with making DLLs?

Since there is no explict destroy. I assume you will need to call flushmem inside any function that messes with objects. But I am not sure how the scope mechanims will work.

Have you done any testing with more compilicated functions?

Doug Stastny


Red(Posted 2005) [#12]
I assume you will need to call flushmem inside any function that messes with objects


Each DLL will import BRL.Blitz
Entire Blitz memory mechanism will be included.

It's just my opinion.