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.

DLL Talk / Possible to use extended dlls within a dll?

Author
Message
Zer0
19
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Canada
Posted: 14th May 2005 15:37
I am wondering if it's possible to use a addon dll for bass with DB pro, but I wonder if it works, I mean bass is a dll is it not and since the addons are dll's would Darkbasic Pro allow bass.dll to call functions from another dll?
waffle
22
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 15th May 2005 04:31
yes.
There are no restrictions on how any DLL accesses any other DLL,
as long as the called DLL permits the call.

Example:
bass.dll can access the APIs. But, DBPro private DLL would
be off limits. Its how they were written. The API and most other DLL
are intended to be publicy used, while DBPro is not.
Zer0
19
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Canada
Posted: 16th May 2005 06:55
So what your basically saying is that I can use BASS.dll's addon DLL's?

I am very new to dlls, I don't really understand exactly how they work yet, sorry for the newbness
TKF15H
21
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 17th May 2005 02:47
Zer0, you need to find the functions inside the BASS.dll you want, then load them. This can be done with DBP quite easily. The problem is when the dll expects a struct or a class as a parameter or return type. Then things get a bit tricky, while still possible.

Quote: "DBPro private DLL would be off limits."

what's a private DLL?

waffle
22
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 1st Jun 2005 13:13
A DLL file that requires private data that is not publically available. DBPro DLL require access to the global structure that is defined by the main library. There are work arounds, but the functions are not directly usable. A private DLL ... OK, so I made up the term, but it describes the result; the DLL expects to be used only by a specific application.

Login to post a reply

Server time is: 2024-11-23 09:54:21
Your offset time is: 2024-11-23 09:54:21