C++ wrapper class for OLE control

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • radders
    New Member
    • Jan 2007
    • 13

    C++ wrapper class for OLE control

    Hi everyone, I'm working through a book of tutorials for microsoft Visual C++ v4, but unfortunately my Class Wizard does not appear to work correctly - I finally managed to assign member variables to controls with the patient help of Willakawill, but now I've reached a new problem.
    I'm trying to write a simple programme that uses the OLE Control "Grid Control" and the book tells me that before you can attach a variable to the Grid control VC++ must make a new class for the Grid control. So, I created a new class using the same settings as the Class Wizard should automatically use (name:CGridCtrl , base class:CWnd) and then tried to assign a variable to the Grid control as I've done in the previous tutorial towards the top of my *project*Dlg.cp p file:
    Code:
    public:
         CGridCtrl m_SalesGrid;
    I've then written code to set column and row widths/heights and fill different cells with values, but when I build the programme I get 7 instances of error C2065, with error messages that say m_SalesGrid, SetColWidth, SetFixedAlignme nt, SetColAlignment , SetCol, SetRow, SetText : undeclared identifier
    Any advice on how to properly declare the identifier would be much appreciated,
    Thanks, Radders
Working...