Solved

How to use DLL Events in MFC!

Posted on 2001-09-17
4
223 Views
Last Modified: 2013-11-25
My control was developed in VC++ 6 ATL and an in-process DLL.  It's properties and methods could be successfully invoked in the MFC host program.  How to invoke its events in MFC?  Could any expert help?  Thanks in advance.
0
Comment
Question by:skyrider_tieus
[X]
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
  • 2
4 Comments
 
LVL 2

Expert Comment

by:shilpa_Jb
ID: 6489469
Hi,
There could be many ways to handle the events of the DLL's in MFC. One way is to If ur using Sink and source concept there is differnt way of handling.And if ur normally using the fire events. It would have been better if u would have mentioned what type of control ur creating.
But still for ur reference u can gothrough MSDN On handling events for control, he should be explaing there.
-Shilpa
0
 

Author Comment

by:skyrider_tieus
ID: 6491434
I'm using Connection Point Support to implement the event interface.  It was working in VB container since the control could be accessed thru components wizard.  However, the control could NOT be found in the MFC's components and controls in Add to Project menu.  In MFC, the control was instantiated with smart pointer and it's properties and methods could be invoked.  There must be a way to fire an event as well.
0
 

Author Comment

by:skyrider_tieus
ID: 6498135
I'd been posting this question for several days, but it seems no expert is interested in answering it.  I'll close this question.  

However, I found an easy way to get by this problem.  I've been using simple object to generate the COM DLL, which could not be found in MFC's registered controls list.  If the Full Control object was inserted, the control was found in MFC's registered controls list.  The rest of work could be implemented by MFC's classwizard and turn out rather easy.  

Any further comment by experts is welcomed, particularly how to invoke the event of ATL's simple object in MFC.  If a satisfactory answer is posted, I'll credit the expert 500 points.  


James Shiang
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 6498700
Points reduced to 0 and placed in PAQ.

Thank you
Computer101
Community Support Moderator
0

Featured Post

Independent Software Vendors: 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!

Question has a verified solution.

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

Suggested Solutions

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

762 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