[implements] attribute in VS2005
- From: "Kirk" <kirk@xxxxxxxxxxxxxxxxxxxx>
- Date: 12 Jan 2006 16:44:10 -0800
It seems microsoft has changed the syntax for the [implements]
attribute in VS2005, and I can't really figure out how to get it to
work now.
We used to do things like this all the time in VS2003:
[implements("IFoo")]
In the above, IFoo is an automation-compliant non-IDispatch interface
(thought it doesn't seem to matter for purposes of this issue).
Now you have to use a syntax like this:
[implements(interfaces={IFoo},dispinterfaces={IUnknown})]
The above compiles, but the "dispinterfaces" parameter is required,
even if your object has no "real" dispinterfaces. Putting in IUnknown
is a hack we used to satsify both the C++ compiler and MIDL.
Anybody got any thoughts on this??
.
- Follow-Ups:
- Re: [implements] attribute in VS2005
- From: Alexander Nickolov
- Re: [implements] attribute in VS2005
- Prev by Date: Re: Set Property on IWebBrowser
- Next by Date: Difference b/w win32DLL and MFC DLL
- Previous by thread: cleaning unwanted COM objects out of registry
- Next by thread: Re: [implements] attribute in VS2005
- Index(es):
Relevant Pages
|