Error C2504: "Cactivexdoccontrol": No base class defined

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.