Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 730 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: What exactly is does "external only" mean referring to classes? [Re: Joozey] #366007
03/31/11 15:43
03/31/11 15:43
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Exactly. Every of the advantages of object oriented programming gets lost as soon as you connect the classes to lite-c. So do it directly in lite-c. This will save you some headaches.

The only exception for that are already written c++ libraries you want to connect to lite-c. In this case you might save some work with this method.


Always learn from history, to be sure you make the same mistakes again...
Re: What exactly is does "external only" mean referring to classes? [Re: Uhrwerk] #366316
04/02/11 19:59
04/02/11 19:59
Joined: Aug 2004
Posts: 1,305
New York
PrenceOfDarkness Offline OP
Serious User
PrenceOfDarkness  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,305
New York
thanks guys for all the input. it just seems writing directly in c++ would be so much more work just to use classes though no?


"There is no problem that can't be solved with time and determination." -me
prenceofdarkness for instant messages on AIM.

Looking for a model designer
PLEASE, SEND ME A PRIVATE MESSAGE OR EMAIL IF YOU'RE INTERESTED.
Re: What exactly is does "external only" mean referring to classes? [Re: PrenceOfDarkness] #366328
04/02/11 21:00
04/02/11 21:00
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Object oriented programming has got some advantages, i.e. encapsulation, inheritance and polymorphism. When writing code in C++ you can take full advantage of these. Now encapsulation, inheritance and polymorphism do not enrich the concept of programming in a sense that you're suddenly able to do things you haven't been able to do before. Instead they try to make programming more intuitive with repsect to the real world and try to give you means to avoid common errors.

The problem with Gamestudio is now, that you have to provide a way of offering the code you have written in c++ to lite-c. In order to do this you create a dll and this dll provides functions. At this point any advantage of object oriented programming languages gets immediately lost. The advantages inside the code of the library are still present of course, however you cannot transport them over to lite-c. The more of work you have to do - compared to directly programming in lite-c - is creating the dll and providing the corresponding header file for that library which can really give you some headaches sometimes.


Always learn from history, to be sure you make the same mistakes again...
Page 2 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1