[implements] attribute in VS2005

Tech-Archive recommends: Fix windows errors by optimizing your registry



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

.



Relevant Pages

  • Re: [implements] attribute in VS2005
    ... Microsoft MVP, MCSD ... > It seems microsoft has changed the syntax for the ... > The above compiles, but the "dispinterfaces" parameter is required, ... > even if your object has no "real" dispinterfaces. ...
    (microsoft.public.vc.atl)
  • Re: New Table via ASP?
    ... Here's a link to a page on the Microsoft MSDN web site that has the complete ... syntax for what you want, as well as other helpful Access Jet SQL syntax: ... > "Kevin Spencer" wrote in message ...
    (microsoft.public.frontpage.client)
  • Re: syntax question in dealing with .Net api
    ... we've got two apps, one in java, one in .Net, and we're trying to put ... only the read-style syntax works in exterior languages (Perl is our ... referring to what Microsoft call 'properties' in OLE/COM? ... some sort of OLE-compatibility layer in other languages. ...
    (comp.lang.perl.misc)
  • Re: MS to stop allowing passwords in URLs
    ... > I just read that Microsoft will stop allowing IDs and passwords to be ... > I personally use this syntax in only one production application, ... the address bar of an Internet Explorer window''. ...
    (Bugtraq)
  • Re: I cant find $get syntax information
    ... I did not knowingly include any Microsoft JS files in my code. ... unreadable JavaScript, ... resources. ... instead the Microsoft example use the syntax "$get". ...
    (microsoft.public.dotnet.framework.aspnet)