Excuse me for a really basic question but I haven't touched C for  
years and C++ hardly at all.

What I am trying to do - as an experiment - is convert one of my  
simple RB Classes into a C++ class and call it from a plugin. I  
propose to do this by creating a new C++ class that will act as the  
super of the existing RB Class and then move a property or two etc.  
over to the new class and remove them from the RB Class. Eventually  
everything will be in the new C++ class and I'll delete the RB Class.

I've made and built a test plugin and I've created a new Class  
"MyBase" with one property, length. Created an .h and .cpp file and  
the lot compiles. The header file:

class MyBase{

   double length;

   void SetLength(double newLength);

   };

My question is however - what next? Looking at some of the examples it  
looks like I really need to create a structure to hold the class data  
(like length) however what I would really like to do is keep the class  
as C++ like as possible (so it can be used in other C++ projects),  
keep it in its own file and just have a shim that allows RB to hook  
into its properties and methods.

Is this possible? I would really like a simple example if anyone has  
one.

thanks!

Peter

(Using XCode if it matters)

NOTE: I originally posted this on the forum but didn't get a reply.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to