Gadgets > Creating GUI Applications with Rogue Wave Views Studio > Extending Rogue Wave Views Studio > Integrating your Own Graphic Objects > Adding the Include File and Library File of a New Class to the Generated Code
 
Adding the Include File and Library File of a New Class to the Generated Code
The C++ code that defines a panel containing an instance of a new user-defined class must contain the #include statement corresponding to the new class. To add this instruction, insert the following code in an initialization method of your extension class.
For example:
#include <ivstudio/appcode.h>
 
IlBoolean
MyStudioExtension::initializeBuffers()
{
// If the IlvRegisterClass is not already done.
This macro must be called only once.
IlvRegisterClass (MyClass, TheSuperClass);
IlvRegisterClassCodeInformation (MyClass,"<myclass.h>","mylib");
// ...
return IlTrue;
}

Version 6.0
Copyright © 2015, Rogue Wave Software, Inc. All Rights Reserved.