Header for CBaseObject ?

Hi,

#include “RSPlugin.h”, which you state you are using, should be sufficient.

It might just be a namespace issue.  Try putting this at the top of your source file, somewhere after your include statements:

using namespace RS;

CBaseObject is defined under that namespace, so the compiler won’t recognize it unless the namespace is included.  You can also skip the ‘using’ declaration and just prepend RS:: to CBaseObject anytime you refer to it, for instance, RS::CBaseObject.  But with the ‘using’ statement, you avoid having to know which items are under RS and which are not, leaving you free to just refer to the type name unqualified.

You might also want to put this:

using namespace RSServices;

in your source files, to avoid needing to worry about qualifying any of those types, too.

1 Like