我新建一个类CMyRecord继承CRecordSet类,现想在建立一个类CMyRecord2 继承CMyRecord 类,我用VC6.0 应如何操作呢?我是新手请具体详细地介绍第二步,万分感谢!

解决方案 »

  1.   

    #include "MyRecord.h"class CMyRecord2 : public CMyRecord
    {
    public:
        CMyRecord2();
        ~CMyRecord2();
    }
      

  2.   

    有必要的话
    class CMyRecord2 : public CMyRecord ,public CRecordSet
      

  3.   

    ClassView->右击MyProject classes->New class...->Class type选择Generic Class,Name输入CMyRecord2,Base Class的Derived From中输入CMyRecord就可以了
      

  4.   

    LongLongAgoImBoy(ThereIsAMe) 你讲的很对,但是我想在ClassView里添加类。
      

  5.   

    这根本就不是多重继承问题嘛。只是一个三层的继承关系而已。
    class CMyRecord : public CRecordSet
    {
    }
    class CMyRecord2 : public CMyRecord
    {
    }
    就OK了
      

  6.   

    LongLongAgoImBoy(ThereIsAMe) 你好,我安你的方法建立了新类,可点击Bass Class...提示The Browse information does not contain a class name "新类名",请问如何才能将基类的函数都继承来呢?我选的是公有继承。