• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 741
  • Last Modified:

CWnd derived class and LPDISPATCH

I want to attach an ActiveX control (1 control) to an existing ActiveX control (2 diffrent control). 2 control returns a LPDISPATCH pointer of 1 control.
Visual studio created from typLib a wraper class which is derived from CWnd. I cannot find any simmilar function like "AttachDispatch"???

How can I attach returned LPDISPATCH to the 1 control?

thanx for your help.
1 Solution
You'll need a 'COleDispatchDriver' driver generated wrapper class for your automation object, the compiler will generate that one from the TypeLib. That's where you cancall 'AttachDispatch()'.
LukaKropAuthor Commented:
yes I have already found it?

Strange behavior in VS.NET 2003. If you already have a wrapper class derived form CWnd and want to create new one from TypeLib, you get new one also derived from CWnd......

thanks anyway

best regards

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now