Click here to Skip to main content
15,920,111 members
Home / Discussions / COM
   

COM

 
GeneralRe: automation Pin
Prem Kumar28-May-02 7:28
Prem Kumar28-May-02 7:28 
GeneralRe: automation Pin
31-May-02 4:21
suss31-May-02 4:21 
GeneralFire Event from outside the COM Method Pin
Koep28-May-02 3:33
Koep28-May-02 3:33 
GeneralRe: Fire Event from outside the COM Method Pin
Len Holgate30-May-02 19:50
Len Holgate30-May-02 19:50 
GeneralRe: Fire Event from outside the COM Method Pin
Koep30-May-02 21:08
Koep30-May-02 21:08 
GeneralRe: Fire Event from outside the COM Method Pin
Len Holgate30-May-02 21:14
Len Holgate30-May-02 21:14 
GeneralRe: Fire Event from outside the COM Method Pin
Koep30-May-02 23:51
Koep30-May-02 23:51 
GeneralRe: Fire Event from outside the COM Method Pin
Len Holgate31-May-02 0:01
Len Holgate31-May-02 0:01 
The code in the article explains what you need to do and what you need to be aware of.

Your impl class probably doesn't implement the event sink interface, there would be no reason for it to, after all the interface is for users of your class to implement so that they can sink your class's events. You either have to marshal the interface that the client registers with you (during advise), but this is made complex if you happen to be using the ATL stuff to do the connection point management for you. OR you need to implement a new interface that you use to communicate between your worker thread and your main object's thread. See the article for a complete implementation. It's non trivial (hence the need for an article). Smile | :)

Len Holgate
www.jetbyte.com
The right code, right now.
GeneralRe: Fire Event from outside the COM Method Pin
Koep31-May-02 1:00
Koep31-May-02 1:00 
GeneralRe: Fire Event from outside the COM Method Pin
Len Holgate31-May-02 1:11
Len Holgate31-May-02 1:11 
GeneralSafeArray Pin
Sameer Maggon27-May-02 20:18
Sameer Maggon27-May-02 20:18 
GeneralRe: SafeArray Pin
Prem Kumar28-May-02 7:14
Prem Kumar28-May-02 7:14 
Generaluse IStream instead Pin
soptest28-May-02 9:53
soptest28-May-02 9:53 
GeneralRe: SafeArray Pin
Len Holgate30-May-02 21:54
Len Holgate30-May-02 21:54 
GeneralFire COM Event from MFC Class Pin
Koep27-May-02 4:59
Koep27-May-02 4:59 
GeneralRe: Fire COM Event from MFC Class Pin
Prem Kumar28-May-02 7:22
Prem Kumar28-May-02 7:22 
Generalserver to client calls Pin
26-May-02 23:08
suss26-May-02 23:08 
GeneralRe: server to client calls Pin
Prem Kumar28-May-02 7:20
Prem Kumar28-May-02 7:20 
GeneralVB Script - Can I sink events - Automation Pin
Sara Burns26-May-02 0:27
Sara Burns26-May-02 0:27 
GeneralRe: VB Script - Can I sink events - Automation Pin
CodeCrew27-May-02 15:45
CodeCrew27-May-02 15:45 
GeneralRe: VB Script - Can I sink events - Automation Pin
Ernest Laurentin14-Jun-02 7:44
Ernest Laurentin14-Jun-02 7:44 
QuestionHelp...floundering...BSTR? Pin
Member 9624-May-02 6:35
Member 9624-May-02 6:35 
AnswerRe: Help...floundering...BSTR? Pin
soptest24-May-02 7:19
soptest24-May-02 7:19 
GeneralRe: Help...floundering...BSTR? Pin
Member 9624-May-02 7:36
Member 9624-May-02 7:36 
GeneralRe: Help...floundering...BSTR? Pin
soptest24-May-02 9:14
soptest24-May-02 9: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.