Click here to Skip to main content
15,914,820 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionLink Error Pin
Cool Ju20-Nov-05 19:05
Cool Ju20-Nov-05 19:05 
AnswerLink Error - solved Pin
Cool Ju20-Nov-05 19:59
Cool Ju20-Nov-05 19:59 
QuestionCapturing Events Pin
Logan from Singapore20-Nov-05 15:39
Logan from Singapore20-Nov-05 15:39 
AnswerRe: Capturing Events Pin
qfegd22-Nov-05 8:16
qfegd22-Nov-05 8:16 
GeneralRe: Capturing Events Pin
Logan from Singapore22-Nov-05 14:18
Logan from Singapore22-Nov-05 14:18 
GeneralRe: Capturing Events Pin
Lim Bio Liong22-Nov-05 15:53
Lim Bio Liong22-Nov-05 15:53 
GeneralRe: Capturing Events Pin
Logan from Singapore22-Nov-05 16:08
Logan from Singapore22-Nov-05 16:08 
GeneralRe: Capturing Events Pin
Lim Bio Liong22-Nov-05 16:21
Lim Bio Liong22-Nov-05 16:21 
Hello w_logan,

Yes, I remember you. We had corresponded som months ago I believe. How are you ? I hope you're doing well. Just a few comments :

>> Actually, I had a COM DLL with multiple objects within it. But I had only expose the main object class. My problem arise when one of my internal object needs to fire a event to the app using my DLL. As only the main interface is expose, the internal object can't fire the event direct to the app.
Comment : you may want to re-think about the design of your interfaces. Since the internal object needs to fire an event to your app, this may signal a need for the internal object's interface to be exposed to the app directly.

On the other hand, if the internal object is meant to be internal afterall, then its events should rightfully be handled internally as well. The main object should be the handler for the event and it is a completely separate matter whether or not this main object ought to further "relay the message" to the app.

>> I was trying use the main object to sink the event and fire it again. But I never really got the way for doing the sink coding properly.
Comment : there are many ways to connect sinks with sources I guess. Just be careul about inter-thread event firing which will require marshaling. However, if everything happens on one thread, marshaling may not be so important.

>> Nonetheless, I worked around it by send the point to the main object inwards to the internal object and use this pointer to fire the event. It may not be the proper way to solve the problem but it solve my problem for now.
Comment : again, be careful about directly passing interface pointers here and there espacially across threads. Marshaling may be required.

- Bio.

GeneralRe: Capturing Events Pin
ThatsAlok4-Dec-05 21:32
ThatsAlok4-Dec-05 21:32 
GeneralRe: Capturing Events Pin
Lim Bio Liong5-Dec-05 2:48
Lim Bio Liong5-Dec-05 2:48 
GeneralRe: Capturing Events Pin
ThatsAlok5-Dec-05 21:31
ThatsAlok5-Dec-05 21:31 
QuestionException in ::ShowWindow/WM_SYNCPAINT handler when using WTL rebar Pin
kamrann20-Nov-05 8:53
kamrann20-Nov-05 8:53 
Questionunhandle exception(8000ffff) while acceing ocx methods Pin
Rajesh match18-Nov-05 21:10
Rajesh match18-Nov-05 21:10 
AnswerRe: unhandle exception(8000ffff) while acceing ocx methods Pin
Michael Dunn19-Nov-05 15:18
sitebuilderMichael Dunn19-Nov-05 15:18 
AnswerRe: unhandle exception(8000ffff) while acceing ocx methods Pin
JonEngle6-Dec-05 19:16
JonEngle6-Dec-05 19:16 
QuestionHow to access method of user define control from ATL Pin
rajesh_kapure16-Nov-05 3:54
rajesh_kapure16-Nov-05 3:54 
QuestionUsing ActiveX without container Pin
Ahsan Askare14-Nov-05 23:33
Ahsan Askare14-Nov-05 23:33 
QuestionHow do you know the duplicate key insertion in STL map Pin
sarath_babu13-Nov-05 20:23
sarath_babu13-Nov-05 20:23 
AnswerRe: How do you know the duplicate key insertion in STL map Pin
Jonas Larsson13-Nov-05 21:50
Jonas Larsson13-Nov-05 21:50 
GeneralRe: How do you know the duplicate key insertion in STL map Pin
sarath_babu14-Nov-05 0:09
sarath_babu14-Nov-05 0:09 
GeneralRe: How do you know the duplicate key insertion in STL map Pin
Jonas Larsson14-Nov-05 1:50
Jonas Larsson14-Nov-05 1:50 
GeneralRe: How do you know the duplicate key insertion in STL map Pin
Stuart Dootson15-Nov-05 6:53
professionalStuart Dootson15-Nov-05 6:53 
GeneralRe: How do you know the duplicate key insertion in STL map Pin
Jörgen Sigvardsson15-Nov-05 9:59
Jörgen Sigvardsson15-Nov-05 9:59 
GeneralRe: How do you know the duplicate key insertion in STL map Pin
Stuart Dootson15-Nov-05 19:54
professionalStuart Dootson15-Nov-05 19:54 
GeneralRe: How do you know the duplicate key insertion in STL map Pin
Jörgen Sigvardsson15-Nov-05 21:14
Jörgen Sigvardsson15-Nov-05 21:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.