Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by AndrewAMD. 12/05/23 10:56
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
6 registered members (AndrewAMD, alibaba, fairtrader, ozgur, TipmyPip, Quad), 622 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
including classes #128150
05/04/07 21:09
05/04/07 21:09
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline OP
User
sheefo  Offline OP
User

Joined: Jul 2006
Posts: 783
London, UK
I need to use a very important class in Lite-C, which contains just simple functions with maths operators. Everyone knows that Lite-C does not support classes, neither does C. So this is why I am looking at ways I can use them, one idea was this COM crap I keep hearing about. I have no idea what it really is, only the jist of it.

I can put this in form of a really simple question: Can I use COM to include a class in Lite-C?

As far as I know DirectX uses this COM and that’s why you can use functions from objects.

If this is possible, I need someone really smart to tell me how I can create a DLL with my class and how I can include it in Lite-C, or however it is meant to be done.

Thanks

Re: including classes [Re: sheefo] #128151
05/05/07 06:12
05/05/07 06:12
Joined: Jul 2006
Posts: 503
Australia
A
adoado Offline

User
adoado  Offline

User
A

Joined: Jul 2006
Posts: 503
Australia
COM? As in the Component Object Model? I am not sure if you can, because the compiler may not understand the syntax in which you would access the class, even if it were possible to get it into 3dgs. I do not have that much experience with COM or any of that "family", so sorry I cannot exactly help you.

You could maybe write a DLL which "emulates" a class - the DLL could have specific variables and methods, and use an internal array to store the "created classes".

Thanks,
Adoado.


Visit our development blog: http://yellloh.com
Re: including classes [Re: adoado] #128152
05/05/07 09:37
05/05/07 09:37
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
T
TWO Offline

Serious User
TWO  Offline

Serious User
T

Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
In the newest manual, goto Script Language->Syntax->API Support there's explained how to include a class using COM.

Re: including classes [Re: TWO] #128153
05/05/07 17:11
05/05/07 17:11
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline OP
User
sheefo  Offline OP
User

Joined: Jul 2006
Posts: 783
London, UK
Well, from what I gathered from the manual COM is pretty straight forward. It's the making the class in the DLL that I need help with. Even if I try on my own and get something compiled, how will I know it works?
I am going to try to see if there are any templates online for making DLL classes, perhaps there is one in VC++. If anyone can help me, you’re a more than welcome


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