> That's even worse, then.
> Because now you have two definitions of the interface and they have to be
> maintained independently.
> A better way to do this is to:
> 1. Create ActiveX library with one implementation of the COM interface in
> question.
> 2. Create second ActiveX library.
> 3. Add type library from first ActiveX library to second ActiveX library.
> 4. Create Com object in second ActiveX library, tell new COM object that
it
> is implementing the appropriate interface from the first ActiveX library.
> You now have an object in the first library and in the second library that
> both implement the same interface.
> What I have done in some cases is define an interface that my ActiveX code
> expects, for example a plug-in interface, with no implementation at all in
> the first ActiveX library.
> --
> -- Early Ehlinger CEO, ResPower Inc - Toll-Free : 866-737-7697 --
> - RenderFarm - Lightwave , 3dSMax , Bryce , Maya , AfterEffects -
> --- www.respower.com -- 150 GHz Starting At USD$0.50/GHz*Hour ---
> ----------------- SuperComputing For the Masses! ----------------
> "I'm so busy programming my computer to let me be lazy, I never
> get any rest!" - John Kaster
> "Curt Peterson" <c...@strikeforcesoftware.com> wrote in message
> news:3d2b03bd$1_2@dnews...
> > No, I actually replaced the text from the interface definition - GUID
and
> > all -
> > I just thought maybe there was a way to grab it from the OCX and not
doing
> > the cut-and-paste thing from the other TLB.
> > Curt
> > "Phil Parker" <par...@sensormatic.com> wrote in message
> > news:3d2af311$1_2@dnews...
> > > When you do this, you are *not* implementing the same interface, you
are
> > > implementing two interfaces which happen to have the same methods.
> > > If you require polymorphic behavior this will not achieve what you
want.
> > > See my previous reply to Prem -- there are some details there for how
to
> > use
> > > the wizards to implement the same interface on two or more components.
> > > Note also, you can implement existing interfaces from seperate type
> > library
> > > files by adding type libraries to the 'uses' list.
> > > "Curt Peterson" <c...@strikeforcesoftware.com> wrote in message
> > > news:3d2aed19$1_2@dnews...
> > > > Now when I did this recently, I created a new type library and COM
> > control
> > > > and
> > > > copy / pasted my previous interface definition through the "text"
> > > contents.
> > > > I didn't
> > > > let the new COM control pick its own CoClass name - I typed in the
> > correct
> > > > name instead.
> > > > This may not be the "right way" to do it, but I didn't take time to
> > ask -
> > > > maybe someone
> > > > out there can give a better/faster/more correct way to accomplish
> this?
> > > > Curt
> > > > "Phil Parker" <ppar...@adelphia.net> wrote in message
> > > > news:3d2a66b2$1_2@dnews...
> > > > > Are you inserting the existing interface using the type library
> editor
> > > and
> > > > > selecting refresh ?
> > > > > That *should* work.
> > > > > Phil.