This error usually occurs because of a problem with the header file:
1. header files are mutually inclusive
2. header file Order
This error is a compilation error, and "inclued header file" related
Problem description
There are three header files AgentSDK.h, AA.h, BB.h, where the CBB class inherits from CAA.
The header file contains the following sequence,
1.aa.h contains AgentSDK.h
2.agentsdk.h contains BB.h
3.bb.h contains AA.h
cause Analysis : The compiler compiles AA.h first, because it contains AgentSDK.h, and introduces AgentSDK.h to continue compiling. Because AgentSDK.h contains BB.h, load BB.h content ready to compile. CBB inherited from CAA,CAA has not yet been compiled successfully, error C2504 : "CAA": the base class is not defined in the VS2008 Error list. This compilation error is the fault when compiling the AA.h header file.
Knot: The header files do not have to be closed loops in the containing order, they should preferably be trees in their structural order.
Error C2504: "Cactivexdoccontrol": No base class defined