Rockwell Automation FactoryTalk Historian Classic User Guide User Manual
Page 152

Chapter 7 Creating RSBizWare Custom Analysis Tools
3. Include Register.h before the class definition in the
NegativeCalc.h header file (by adding an #include
“Register.h” statement to the NegativeCalc.h header file).
Before compiling the project, you need to alter the project settings as
follows:
1. Select Project > Settings.
2. On the dialog, select Win32 Release MinDependency from
the Settings For list at the top of the dialog box.
3. Select the C/C++ tab and remove the macro named
_ATL_MIN_CRT at the end of the Preprocessor definitions
box. (Note that this macro was removed from the example
project.)
4. Click OK to save your changes.
5. You are now ready to compile the project. You have several
options when compiling a COM DLL in Visual C++.
• It is recommended that you compile the project in debug
mode while developing the custom analysis tool. This will
allow you to step into the
Calculate()
function when it is
called from the Configuration Console. You will see how this
is done in "Debugging Custom Analysis Tools in Visual C++
(page 153)".
152
Rockwell Automation Publication HIST-UM001K-EN-E-June 2014