Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Template : make DLL for DBC with FreeBasic

Author
Message
Silverman
17
Years of Service
User Offline
Joined: 18th Jan 2007
Location: France
Posted: 4th Jan 2016 13:05
Hello,

I make my first step in the creation for DarkBasicClassic dll. And here my first dll!
The dll + source code of the .dll (made with FreeBasic) is provided in the ZIP file, and an example DarkBasic file.

Have fun!
DirectX 9.0c (February 2010)/ DBClassic v1.20

Microsoft Windows XP Professionnel Version 2002 Service Pack 3
AMD Phenom(tm)II X4 965 processor 3.42GHz, 3.25 Go de RAM
GeForce GTX 560 Ti

Attachments

Login to view attachments
Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 4th Jan 2016 17:32
Interesting. Why does the float function seem to be defined as a return value of long? Isn't long a long integer or DWORD? I don't know freebasic so maybe it's not what I think.

Enjoy your day.
Silverman
17
Years of Service
User Offline
Joined: 18th Jan 2007
Location: France
Posted: 5th Jan 2016 11:08 Edited at: 5th Jan 2016 11:27
In FreeBasic, a LONG datatype is a signed DWORD.
I posted this template hoping that it interested someone. FreeBasic is easier to use than C ++ because its syntax is quite similar to that of DarkBasicClassic (and Pro for UDT), and its performance is very good.
DirectX 9.0c (February 2010)/ DBClassic v1.20

Microsoft Windows XP Professionnel Version 2002 Service Pack 3
AMD Phenom(tm)II X4 965 processor 3.42GHz, 3.25 Go de RAM
GeForce GTX 560 Ti

Login to post a reply

Server time is: 2024-04-16 16:21:33
Your offset time is: 2024-04-16 16:21:33