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 / Darkbasic and DLLs

Author
Message
the nutty proffesor
19
Years of Service
User Offline
Joined: 4th Jun 2005
Location:
Posted: 9th Jun 2005 02:39
Are there some groovy DLLs that make it loads better and more like Pro?
If not are there any gd DLLs at all worth getting?

If u cant beat the best give up and go home
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 9th Jun 2005 23:37
If you have DB Classic Enhanced (1.13) you can use DLLs. However, you have to know how to call the functions, there is no way to turn the DLL functions into DB commands.

BatVink
the nutty proffesor
19
Years of Service
User Offline
Joined: 4th Jun 2005
Location:
Posted: 13th Jun 2005 23:54
how exactly do you call them?

If u cant beat the best give up and go home
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 16th Jun 2005 02:04
Quote: "CALL DLL
This command will call a function of a loaded DLL. The DLL Number must be an integer value between 1 and 256. The DLL Number points to the DLL previously loaded. The Function String is the name of the function described in the export table of the DLL. You can optionally have up to 9 parameters of integer, real or string type providing the function you are calling matches the parameters exactly. You can optionally return a value of integer, real or string type providing the function exports the same type.

SYNTAX
CALL DLL DLL Number, Function Name, Parameters List
"



"Lets migrate like bricks" - Me
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 19th Jun 2005 17:35
It won't make DBC more like Pro - But it does give you full access to the API (most of which is unusable, as you can't find out the pointer to your code procedures what with them being interpreted, etc.).

However, there are some useful things in there..

For example, you have system shutdown commands, standard 'About Windows' boxes like the ones in Explorer when you click Help > About, printing capability, ability to multi-thread DarkBASIC - But you can't use it all, because DB doesn't even slightly support pointers, which the whole API is basically based around.

For that reason, it's better to suck up to a C++ programmer and get them to spend ten minutes making a 'wrapper' DLL for that DLL function - A DLL that automatically fills in all the difficult bits, as it were. It wouldn't take long to do one command.

How's my typing? Phone 0800-GO-TO-HELL
the nutty proffesor
19
Years of Service
User Offline
Joined: 4th Jun 2005
Location:
Posted: 21st Jun 2005 03:48
hmm kk sounds easy

If u cant beat the best give up and go home

Login to post a reply

Server time is: 2025-05-23 00:53:35
Your offset time is: 2025-05-23 00:53:35