Well, you can use Visual Basic instead of C or C++. It's been proven to work with DarkBASIC Pro. But I don't think a DBPro DLL would work with DarkBASIC Pro.
Here's just a little experiment:
The GoodPixel.dba -> GoodPixel.dll Code:
function goodpixel(x,y,radius,threed as boolean,length as double integer)
if threed = 1
make object sphere 65535,radius
position object 65535,x,y,0
wait length
delete object 65535
exitfunction
else
for x2=x to 0 step -1
for y2=y to 0 step -1
dec radius
if radius <= 0 then exitfunction
circle x2,y2,radius
next
next
exitfunction
endif
endfunction
Compile, and change the GoodPixel.exe file to GoodPixel.dll
The UseGoodPixel.dba -> UseGoodPixel.exe File
Load DLL "GoodPixel.dll",1
Call DLL 1,"goodpixel",20,20,30,1,5000
cls
Call DLL 1,"goodpixel",20,20,30,0,5000
cls
end
Compile and execute UseGoodPixel.exe
The result of the compile/execution?
NO compiler error
YES runtime error "Runtime Error 9704 - Could Not Call DLL Function at Line 2"
If the program persisted, you may get a similar error, but saying "Line 4"
If the program persisted, it will end.
So the result of the experiment? DarkBASIC Professional can NOT handle DLL creation! If you try to convert a DBPro EXE to a DLL, the DLL will not have any files - just an Icon Group and a Version if you look at it in Colin Wilson's XN Resource Editor (http://www.wilsonc.demon.co.uk/delphi.htm), a good free resource editor.
But since the Dark Games SDK is made for C++, DLL creation is likely to be possible with it, as long as you are sure to add initialization functions to the DLL.
For the Software You Want, AMPERSAND LABORATORIES is the place! [URL=http://www.andlabs.com/]

[/URL]