Solved

How to use DLL Events in MFC!

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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…

708 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

13 Experts available now in Live!

Get 1:1 Help Now