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 / Calling specific darkbasic functions from within a dll.

Author
Message
coolgames
19
Years of Service
User Offline
Joined: 26th Sep 2005
Location: Oregon, USA
Posted: 9th May 2006 16:40
Is it possible, I'm sure it is, to call certain darkbasic functions from within a dll?

I'm using c.

AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 9th May 2006 18:30 Edited at: 9th May 2006 18:31
Yes,

Load Dll dll_file_name,dll_number
Call Dll dll_number,dll_function,dll_paremeters


Hope it helps,
Alex


coolgames
19
Years of Service
User Offline
Joined: 26th Sep 2005
Location: Oregon, USA
Posted: 9th May 2006 18:42
I meant not calling an external dll from within darkbasic. I meant being to have a dll that can call darkbasic commands from within it self.

IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 9th May 2006 19:28
If you know about function pointers in C or C++, then yes. If not, no.

I'd make a guess based on your question about global variables in C, that you don't, so any answer I give, you won't really understand.

Take a few minutes on google to look them up and learn them, then come back here when you understand what's going on and why.

For free Plug-ins and source code http://www.matrix1.demon.co.uk
coolgames
19
Years of Service
User Offline
Joined: 26th Sep 2005
Location: Oregon, USA
Posted: 9th May 2006 19:45
I think I understand how it works now. I googled it and found an expanation for function pointers in c.

Barnski
19
Years of Service
User Offline
Joined: 26th Jan 2006
Location: Switzerland, Zurich
Posted: 9th May 2006 21:40
coolgames; in response to your email (I suppose it was you) I answered this question in my lua thread:

http://forum.thegamecreators.com/?m=forum_view&b=5&t=74095&p=1

I only noticed this thread now.

IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 10th May 2006 01:19
Yes, Barnski's last post shows you how to call a DBPro command/function.

... Nice plugin BTW

For free Plug-ins and source code http://www.matrix1.demon.co.uk
Barnski
19
Years of Service
User Offline
Joined: 26th Jan 2006
Location: Switzerland, Zurich
Posted: 10th May 2006 19:14
Quote: "... Nice plugin BTW"
You only noticed this now? eheh, kidding. Thanks IanM! I actually enjoyed making it.

IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 10th May 2006 21:44
Too busy doing my own things ... I only browse the WIP & Program announcements once in a while.

For free Plug-ins and source code http://www.matrix1.demon.co.uk

Login to post a reply

Server time is: 2025-05-19 01:56:55
Your offset time is: 2025-05-19 01:56:55