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 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



Comments

  • There are no comments yet. Be the first to comment!

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: December 11, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT Market pressures to move more quickly and develop innovative applications are forcing organizations to rethink how they develop and release applications. The combination of public clouds and physical back-end infrastructures are a means to get applications out faster. However, these hybrid solutions complicate DevOps adoption, with application delivery pipelines that span across complex hybrid cloud and non-cloud environments. Check out this …

  • CentreCorp is a fully integrated and diversified property management and real estate service company, specializing in the "shopping center" segment, and is one of the premier retail service providers in North America. Company executives travel a great deal, carrying a number of traveling laptops with critical current business data, and no easy way to back up to the network outside the office. Read this case study to learn how CentreCorp implemented a suite of business continuity services that included …

Most Popular Programming Stories

More for Developers

RSS Feeds