CWnd derived class and LPDISPATCH

Posted on 2005-03-17
Medium Priority
Last Modified: 2013-11-20
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.
Question by:LukaKrop
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 86

Accepted Solution

jkr earned 1500 total points
ID: 13565600
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()'.

Author Comment

ID: 13565644
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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
Ready to get certified? Check out some courses that help you prepare for third-party exams.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question