How to use Dev c++ to create dll for Blitz3D?

Blitz3D Forums/Blitz3D Userlibs/How to use Dev c++ to create dll for Blitz3D?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I created a decls file to go witb this:

magic.decls
.lib "magic.dll"

mymagicfunction(zahl1%,zahl2%)

If i try to use the function by itself it compiles
but when I try to put c=mymagicfunction(a,b) it says 'wrong return type'
Also the command is not highlighted blue

EDIT - fixed
.lib "magic.dll"

mymagicfunction%(zahl1%,zahl2%)

it was missing a %