Title: RE: [msvc] Automation, IDispatch, Class Explosing The Interface

I'm pleased to say that I've found my answer.

For reference, if you use VC's feature whereby you can add a class from a
TLB file (through the Class Wizard), then OCX 1 can add a wrapper class for
OCX 2 into its project.

The wrapper class has three constructors - one of which accepts an
LPDISPATCH (= IDispatch *), which is exactly what I wanted - it creates the
wrapper class around the existing interface, giving me access to the OCX
instance's methods (handling the invoking under the hood in the wrapper
class).

Woohoo!

--
Jason Teagle
[EMAIL PROTECTED]

Reply via email to