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 Professional Discussion / Can DB Pro interface with C programs

Author
Message
Danimal Crackers
21
Years of Service
User Offline
Joined: 7th Nov 2002
Location:
Posted: 8th Nov 2002 05:08
Hello. I was wondering if it is possible to interface with C prgrams using DarkBasic Pro.

Thanks in advance.
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 8th Nov 2002 06:37
depends in what way
DLLs can pass between themselves and DB with upto 9 input/outputs

if you'd need direct access then i dunno - really i think DLLs are the best option, or you could make like a dummy transfer file which both can access using the file commands.

Anata aru kowagaru no watashi!
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 8th Nov 2002 11:13
Its supposed to be able to pass 9, but the limit seems to be 5 for returning values and 7 for non-returning values...

Yes, I really am THAT good...
Danimal Crackers
21
Years of Service
User Offline
Joined: 7th Nov 2002
Location:
Posted: 8th Nov 2002 16:27
Cool... thanks guys...

Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 8th Nov 2002 16:44
that in Pro? becuase i've had all 9 before input/output in Enhanced

Anata aru kowagaru no watashi!
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 8th Nov 2002 17:16
Yes its a Pro Problem - you get a compiler error if you put in more that 5/7...

Very annoying!

Yes, I really am THAT good...
Richard Davey
Retired Moderator
21
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 9th Nov 2002 19:07
Aside from using DLLs in the "LOAD DLL" sense, you can also write your own commands in C++ by creating your DLL in Visual C++ and copying it into the user_plugins folder. If you have coded your commands properly they will now be available work within DBPro. I am of course talking about real COMMANDS here, i.e. if you want a new command called "PRINT RANDOM NAME" then you could write yourself one easily!

Of course you need to know C++ (well), but it's entirely possible and people are already doing it.

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 9th Nov 2002 19:52
Can you give us more details about this ?

Yes, I really am THAT good...
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 10th Nov 2002 01:10
yes i would like more details on this, becuase i was hopeing to create my own commands - except i'm unsure on the interaction DBpro requires ...
Standard DirectX terms for objects?
the distributed DLL is the same as from the Enhancements pack - which is useful but not for extension commands

Anata aru kowagaru no watashi!

Login to post a reply

Server time is: 2024-03-29 09:34:28
Your offset time is: 2024-03-29 09:34:28