Who could tell me how to add a interface?

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



Hello all:
I write codes using atl,and now I want to add a interface
and the interface is provided by system such as IPersistStreamInit,
How must I do?and now is the interface added under [coclass] in the idl?
I find a example the interface isn't added under [coclass] in the idl?
why?thanks very much.


.



Relevant Pages

  • An unbelievable bug in C++ (using the implements attribute)
    ... The compiler looks at your C++ code, and creates an intermediate .idl ... coclass Table ... implement a dual interface. ...
    (microsoft.public.vc.language)
  • IDL for nested C++ namespaces?
    ... Is there IDL syntax to support this? ... IDL is being used with a COM coclass and interface, ... keyword does not support colons in its name. ...
    (microsoft.public.vc.atl)
  • Re: Problem marshalling interface pointer into local server
    ... I hope by main you mean the project for the shared IDL, ... Now that would be correct - an Automation-compatible interface ... Further to this, I had an issue where I have a in-proc server, ... Both servers implements IFace and register their ...
    (microsoft.public.vc.atl)
  • Re: Interna einer Automations-App
    ... > dass diese Apps intern CoCreateInstance für ihre eigenen Objekte ... die einen Zeiger auf ein anderes Objekt ... wie es in der IDL steht. ... Wie Du siehst wird in IDispatchImpl, AGCom::Application als Interface ...
    (microsoft.public.de.vc)
  • Re: Creating multiple instances of objects
    ... declared as an attribute in your IDL hptDBdata interface, ... The compiler may have been confused and failed to ... If you simply want to expose a database schema to the client, ...
    (comp.object.corba)