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 / Object oriented programming in DBPro

Author
Message
AutoBot
16
Years of Service
User Offline
Joined: 25th Sep 2009
Location: Everywhere
Posted: 11th Dec 2010 22:33 Edited at: 11th Dec 2010 22:34
Yeah, I've searched and seen other threads asking the same question, but they're dated all the way back to 2006.
What are the object oriented features on DBPro? I've seen the type keyword used a few times, but I've only been able to make data members, no member functions or anything of that sort.
Another thing I want to consider is its capability of Polymorphism (ambiguous classes, virtual functions, etc), public/protected/private, and other things that you'd find in C++ classes.

I bet you all can tell that I'm a C++ guy, I'm just starting to experiment with DBPro again.


Kevin Picone
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 11th Dec 2010 22:48
Rather then try and make DBPRO into something it's not, why not use Dark DGK with C++

Dar13
18
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 11th Dec 2010 22:49
The types in DBPro share almost nothing with C++ classes. They're implemented more like C structs instead(no methods, inheritance/polymorphism, private/public/virtual/friend, etc).


AutoBot
16
Years of Service
User Offline
Joined: 25th Sep 2009
Location: Everywhere
Posted: 11th Dec 2010 23:11
Quote: "Rather then try and make DBPRO into something it's not, why not use Dark DGK with C++"

I knew someone would mention that. The thing is that I'm using Visual C++ 2010 Express, I don't think GDK is compatable. But whatever, that's not the focus of this thread and I'll probably make a new one about that.

I might spark another question about that here though: will all of the DLLs I have (Physics, AI, etc) migrate right to GDK once I've installed it?


Quote: "They're implemented more like C structs instead"

Ah, that explains it.


Sven B
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 11th Dec 2010 23:18 Edited at: 11th Dec 2010 23:18
Quote: "I knew someone would mention that. The thing is that I'm using Visual C++ 2010 Express, I don't think GDK is compatable. But whatever, that's not the focus of this thread and I'll probably make a new one about that."


I've used DGDK before with MSVC++ express. But I had to configure some things manually to make it work (like the project templates).

Cheers!
Sven B

Dar13
18
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 13th Dec 2010 22:10
They actually just released an update just for VS2010. I'm currently using VS2010 Professional along with DarkGDK.


Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 14th Dec 2010 19:20
Quote: "I might spark another question about that here though: will all of the DLLs I have (Physics, AI, etc) migrate right to GDK once I've installed it?"

Some of them will, some of them need special GDK specific DLL's, (Which should be part of the download) and some of them wont work.

My signature is NOT a moderator plaything! Stop changing it!

Login to post a reply

Server time is: 2026-07-21 03:10:25
Your offset time is: 2026-07-21 03:10:25