Displaying System Interfaces in ClassView | CodeGuru

Displaying System Interfaces in ClassView

The VC++ ClassView pane of the project window displays a view of your project classes. If your project is an ATL project, then ClassView will also display your interfaces that a class supports when the class node is opened in ClassView. ClassView scans your class header file for COM_INTERFACE_ENTRY macros to determine what interfaces a […]

Written By
CodeGuru Staff
CodeGuru Staff
Sep 29, 1998
1 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

The VC++ ClassView pane of the project window displays a view of your
project classes. If your project is an ATL project, then ClassView will also
display your interfaces that a class supports when the class node is opened in
ClassView. ClassView scans your class header file for COM_INTERFACE_ENTRY
macros to determine what interfaces a class supports. By default, only
interfaces that appear in your IDL file are displayed in the ClassView.


You can extend this feature to include any system interfaces that you
implement in your class, such as IStorage, IStream etc. This can
be acieved in two simple steps:


  1. Ensure that your class declaration includes COM_INTERFACE_ENTRY macros
    for the system interfaces you implement (it should do already)

  2. Open the system IDL file (in the main Include directory of your VC++
    installation) that contains the interface you want ClassView to recognise and
    include it in your project

All system interfaces that are defined all IDL files that are included in
your project will appear in the ClassView window.

NOTE: By default, adding an IDL file to your project excludes it from
the project build so this method does not affect the build of your project in
any way

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.