Solved

How to use DLL Events in MFC!

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying 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

Suggested Solutions

Title # Comments Views Activity
Delphi Mdi application Child forms get behind control 7 270
wordappend challenge 8 200
Question to Pivot table 1 63
Authenticate using sesu from script 7 56
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…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…

856 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