Re: ATL Com
Oh, you can ask VC6 question here alright. However, bear
in mind that for most people here VC6 is by now a distant
memory. I stopped using it over 2 years ago, and I'm a slow
adopter...
You can add interfaces to a coclass after you create it. In
fact that's all you can do if you do not want to define any
new interfaces for your object - use the wizard and then
clean up after it deleting the interface it created in the process
and implementing the interfaces you need instead.
ATL has a wizard for implementing an interface from a type
library, but I've never really used it. Partly because the
interfaces I tend to implement are not described in type
libraries I guess, though I like the trusty text editor too :)...
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@mvps.org
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"Roberto Carcione" <roberto.carcione@ampersoftware.it> wrote in message
news:eAXgYK9fGHA.3364@TK2MSFTNGP05.phx.gbl...
Hi Alexander,
thanks for the answers, but:
VC6 is deprecated from the point of view of this newsgroup or in general?
because if in general there are a lot of persons use this environment.
editor for adding additional interfaces. Note it doesn't make
sense to create your reusable interfaces at the same time you
are creating a coclass. And a coclass doesn't need more than a
single non-reusable interface, so you shouldn't be inconvenienced
at all...
yes you are right when you say "...more than a single..." but my objective
was to have for a single coclass many interfaces
and i found only this path.
thanks anyway
roberto
"Alexander Nickolov" <agnickolov@mvps.org> wrote in message
news:uPiVz01fGHA.1264@TK2MSFTNGP05.phx.gbl...
For starters, VC6 is deprecated. Furthermore, the wizard you
are describing was already deprecated when VC6 was released
back in 1998.
The regular New ATL Object wizard only supports creating a
single interface. Beyond that, the IDE has a fully functional text
editor for adding additional interfaces. Note it doesn't make
sense to create your reusable interfaces at the same time you
are creating a coclass. And a coclass doesn't need more than a
single non-reusable interface, so you shouldn't be inconvenienced
at all...
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@mvps.org
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"Roberto Carcione" <roberto.carcione@ampersoftware.it> wrote in message
news:OEwdtIyfGHA.4900@TK2MSFTNGP02.phx.gbl...
Hi at all,
i created an ATL com project from visual studio 6.0. After i created a
new
class (menu Insert/New Class), from an atl class and i specified, in
new
class dialog, 5 intefaces to create...
but Visual Studio 6.0 said me i could create maximum 3 interfaces...
Why this limitations? is ther somthing i don't know?
Roberto