BUG: Active Template Library Implement Connection Point Wizard Generates Incorrect Code (315149)
The information in this article applies to:
- Microsoft Visual C++ .NET (2002)
- Microsoft Visual C++ .NET (2003)
This article was previously published under Q315149 SYMPTOMS The Active Template Library (ATL) Implement Connection
Point Wizard generates incorrect code when it reimplements a connection point
on an ATL COM object that supports connection points. Each time that
you choose to implement a connection point on the same source interface, the
wizard adds the following line of code, where _ITestEvents is the source
interface:
__event __interface _ITestEvents;
NOTE: This behavior occurs only with attributed ATL projects.
RESOLUTION To work around this problem, delete the extra line of code
that ATL adds to the header file of the object. STATUSMicrosoft has confirmed that this is a bug in the Microsoft
products that are listed at the beginning of this article.
REFERENCES For more information, see the Microsoft online Help
documentation at the following MSDN Web sites:
| Modification Type: | Major | Last Reviewed: | 4/11/2003 |
|---|
| Keywords: | kbbug kbNativeAttributes kbpending kbProd2Web KB315149 |
|---|
|