SEAL Forum Index SEAL
The SEAL Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Dynamic c++

 
Post new topic   Reply to topic    SEAL Forum Index -> Seal 3.0 Development
View previous topic :: View next topic  
Author Message
crashfourit



Joined: 10 Dec 2003
Posts: 43

PostPosted: Wed Feb 04, 2004 3:43 pm    Post subject: Dynamic c++ Reply with quote

I have found out how do make dynamic c++ classes (but it is bit of a hack):
Code:
/* this is the interface, all of the function have to be abstract*/
class DUMB_I{
virtual void funtion() =0;
int data;
}

next class defines the functions as non abstact in a dynamic modual
it is used in the dynamic library.
Code:
class DUMB : DUMB_I{
void fuction();
}

Notes:
Destructors can be virtual, but you have to make a hack to run the constructors because they can't be virtual.
You will have to make a specail way to make the class.
You could make a template that tacks care of the above.

Hope this helps.
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=%22dynamic+class%22+c%2B%2B&btnG=Google+Search
_________________
"seal" must be in the subject line if you email me.
If you try to make something idiot proof, some one will come and make a better idiot.
Back to top
View user's profile Send private message Visit poster's website
ucosty



Joined: 02 Dec 2003
Posts: 41
Location: Australia

PostPosted: Thu Feb 05, 2004 12:53 am    Post subject: Reply with quote

Im not much of an OO person myself. In fact I program in a C style (in C++). So this doesnt makes much sense to me
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SEAL Forum Index -> Seal 3.0 Development All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group