Solved

How to use DLL Events in MFC!

Posted on 2001-09-17
4
212 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
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…

939 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now