Whole Tomato Software Forums
Main Site
|
Profile
|
Register
|
Active Topics
|
Members
|
Search
|
FAQ
All Forums
Visual Assist
Feature Requests
Warn when a COM interface is missing from COM map
You must be registered to post a reply.
Click
here
to register.
Screensize:
640 x 480
800 x 600
1024 x 768
1280 x 1024
UserName:
Password:
Format:
Font
Andale Mono
Arial
Arial Black
Book Antiqua
Century Gothic
Comic Sans MS
Courier New
Georgia
Impact
Lucida Console
Script MT Bold
Stencil
Tahoma
Times New Roman
Trebuchet MS
Verdana
Size
1
2
3
4
5
6
Color
Black
Blue
Brown
Green
Red
Violet
Yellow
Message:
Forum code
is on.
Html is off.
[quote][i]Originally posted by cpp_john[/i] [br]Consider the case of implementing a COM object in C++ using [b]ATL[/b]. 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 [code]COM_INTERFACE_ENTRY[/code] 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. [/quote]
Check to include your profile signature.
Check to subscribe to this topic.
T O P I C R E V I E W
cpp_john
Posted - Oct 09 2020 : 1:46:35 PM
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.
1 L A T E S T R E P L I E S (Newest First)
feline
Posted - Oct 12 2020 : 06:36:36 AM
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.
© 2023 Whole Tomato Software, LLC
Snitz Forums 2000