Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Warn when a COM interface is missing from COM map
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

cpp_john
New Member

Italy
4 Posts

Posted - Oct 09 2020 :  1:46:35 PM  Show Profile  Reply with Quote
Consider the case of implementing a COM object in C++ using ATL.

This ATL C++ class implements some COM interfaces, that are listed as base classes.

In addition, these COM interfaces should also be added as entries in the COM map, using the
COM_INTERFACE_ENTRY
macro.

If the entry in the COM map is missing, you can get subtle bugs, as described in this blog post:

https://blogs.msmvps.com/gdicanio/2020/10/09/the-case-of-the-context-menu-shell-extension-that-doesnt-get-invoked-by-explorer/

So, it's good to have Visual Assist X emits at least a warning in such cases.

feline
Whole Tomato Software

United Kingdom
18727 Posts

Posted - Oct 12 2020 :  06:36:36 AM  Show Profile  Reply with Quote
Are you talking about having VA check existing code, or is this when you are writing / creating new code?

The current Code Inspection feature is based on Clang, and is checking C++ features, so is rather unlikely to pick up ATL specific points.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000