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 / C & C++ in DarkBasicPro

Author
Message
kraftwerk
21
Years of Service
User Offline
Joined: 10th Apr 2005
Location: isle of wight
Posted: 3rd Feb 2011 14:41
Hi all
Is it possible to include C & C++ source code in DarkBasicPro
thanks

http://www.facebook.com/januscloud
CumQuaT
AGK Master
16
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 3rd Feb 2011 14:59
Short answer is no

Malevolence: The Sword of Ahkranox
The infinite RPG
http://www.msoa-game.com
Scraggle
Moderator
23
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 3rd Feb 2011 18:35
A different answer is yes.
Although it depends what you mean by include the source code.
If you mean enter C++ source code into the DBP IDE and expect it to work then no. However, you can precompile your c/c++ source code and then have DBP execute it for you.

Suicidal Sledder
21
Years of Service
User Offline
Joined: 17th Aug 2004
Location: Tikrit, Iraq
Posted: 3rd Feb 2011 21:10
Correct me if I am wrong but isnt it possible to compile DLLs in C++ and include them in DBP?

Yodaman Jer
User Banned
Posted: 4th Feb 2011 00:19
Quote: "Correct me if I am wrong but isnt it possible to compile DLLs in C++ and include them in DBP?"


That's what I've been told. That's how all plugins for DBP work, isn't it? It's a DLL programmed in C++/C#.

kraftwerk
21
Years of Service
User Offline
Joined: 10th Apr 2005
Location: isle of wight
Posted: 4th Feb 2011 02:21
So you send data to a DLL and the DLL returns a value.or something like that.a Function.would it speed things up?

http://www.facebook.com/januscloud
SH4773R
16
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 4th Feb 2011 09:16
Short anwser is yes

Login to post a reply

Server time is: 2026-07-18 02:38:27
Your offset time is: 2026-07-18 02:38:27