Hi All, Thanks for all the kind and helpful responses. I guess I got annoyed because although I already found pretty well all the bits and pieces mentioned in the links provided, I was disappointed that I had to spend quite a few hours doing so. RS could easily have provided these links or requested copies be added to the SDK - why not even pay the authors $100 or more to add this helpful info.
I got a basic plugin working and even debugging using Dave Addey's helpful link. However I wanted to provide a wrapper to a very simple c ++ class for use in a project of mine. I already had the class in RB - I just wanted to convert it to c++ for practice. So I have a look at the Complete Class example. Guess what - it don't compile in xCode. OK, so I remove the two offending bits (something to do with strings IIRC) and it compiles. Build my plugin but now RB complains! - missing interface or something. I've been using RB for as long as many here and I guess I could figure it out but at that point I thought - why bother? RB obviously doesn't so.... So... I build another plugin based on the Complete Class example. It's really simple. It doesn't have hardly anything in it. One method and an initializer so I could perhaps create an instance of my c++ class there - store it in the class data or something and then use a dynamic cast or something to access my c++ class when I need to. Guess what - now the initializer never gets called!! Beats me what's wrong. I didn't even get to the point where I could *start* using my limited C++. I would have thought that accessing a c++ class would be something that would be fairly commonly required. For someone like me (limited c+ +) though, the really steep learning curve to actually get this working in a plugin is *very* off-putting. Why can't a simple working example (cross platform!) of how to do this be provided? Best way to create your *own* property setter and getter etc. I appreciate that part of the prob may be my own lack of C++ knowledge but.... Why can't there be a simple (working!!) example of how to hook into a c ++ library? Nothing complicated - just the basics. Or how to create your own dylib and access it through declares instead? And what's with all the old CW projects??? I basically spent 2 full days and got - nowhere. Its almost enough to make me want to just do the whole thing in xCode and provide a Cocoa GUI to access my c++. Anyway - enough ranting from me, and of course *none* of the above should be taken personally by anyone. I've seen enough out of hours help by current and ex employees to know that the problem lies elsewhere. thanks again, Peter PS - (to REALS) - I'm happy to have 1 (one) more go. If anyone here has a simple project showing how use a c++ class in a plugin, how to store it, initialize it and access it, and how to set/get a property in that class and call a method I would be very grateful. On 26/02/2008, at 4:20 PM, Peter Zegelin wrote: > Well it's been over 6 years since I last made a plugin. I would have > thought things like documentation and examples would have improved > greatly. Obviously not. It's almost beyond pathetic. Looks like no > plugins from me (as if REALSoftware cares!). > > Excuse me for being annoyed - it doesn't often happen. > > Peter > _______________________________________________ > Unsubscribe or switch delivery mode: > <http://www.realsoftware.com/support/listmanager/> > > Search the archives: > <http://support.realsoftware.com/listarchives/lists.html> _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
