Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to use DLL Events in MFC!

Posted on 2001-09-17
4
Medium Priority
?
228 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

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…
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.
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…

688 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