The DataObjectBase class provides methods and properties common to all data objects. The Origin C DataObjectBase class is an abstract base class used for polymorphic handling of DataObject and DataPlot related class types. Consequently, Origin C objects of type DataObjectBase can not be constructed. Derived classes such as DataObject, Column, MatrixObject, and DataPlot inherit DataObjectBase class methods and should be used instead.
int nCol = wks.Columns("B").GetIndex();
wks.InsertCol(nCol+1, "Result", strNewColName);