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

COM

 
GeneralRe: looking for help related to IPicture Pin
ThatsAlok15-Oct-04 4:13
ThatsAlok15-Oct-04 4:13 
GeneralSMTP email id Pin
Deepak Kumar Singh12-Oct-04 21:16
Deepak Kumar Singh12-Oct-04 21:16 
Generalpassing a structure across DCOM Pin
Ravi Jadhav12-Oct-04 2:38
Ravi Jadhav12-Oct-04 2:38 
GeneralRe: passing a structure across DCOM Pin
Kurt Muellner12-Oct-04 21:43
Kurt Muellner12-Oct-04 21:43 
QuestionHow to fire an event within a thread in Vc++ Pin
Akshay Dave11-Oct-04 18:12
Akshay Dave11-Oct-04 18:12 
AnswerRe: How to fire an event within a thread in Vc++ Pin
Ravi Bhavnani13-Oct-04 6:46
professionalRavi Bhavnani13-Oct-04 6:46 
GeneralRe: How to fire an event within a thread in Vc++ Pin
Akshay Dave13-Oct-04 19:17
Akshay Dave13-Oct-04 19:17 
GeneralRe: How to fire an event within a thread in Vc++ Pin
Lim Bio Liong15-Oct-04 2:11
Lim Bio Liong15-Oct-04 2:11 
Hello Akshay,

Event firing in a COM server is a very tricky process. This is especially true if your COM server is based on the apartment-threaded-model.

You must be able to obtain the event handling functions of your object's client application. This can be a complicated process involving going through the connection point clients of your COM object. From there, you can obtain the event handling functions of your Com object's events. Firing an event is simply invoking these event handling functions (of your client).

If you are using the apartment-threaded-model, you also will not be able to fire these events directly from within your thread. These event handling functions must be marshalled to your thread.

I really do not wish to disappoint you, Akshay, but event firing from within a thread (separate from the thread in which your COM object is created) is simply -NOT- a trivail or simple task.

I hope to write an article on this topic in the near future. I'll keep you posted on this. Meantime, I'll try to search for some good book references that can help you along.

Best Regards,
Bio.



GeneralRe: How to fire an event within a thread in Vc++ Pin
Akshay Dave15-Oct-04 20:31
Akshay Dave15-Oct-04 20:31 
GeneralRe: How to fire an event within a thread in Vc++ Pin
Lim Bio Liong16-Oct-04 18:52
Lim Bio Liong16-Oct-04 18:52 
QuestionUsing Text Object Model for RichEdit manipulation? Pin
Jonathan Lee Brown11-Oct-04 12:37
Jonathan Lee Brown11-Oct-04 12:37 
GeneralRDO data binding works if set up at design time but not in code Pin
Yuqing Zhu10-Oct-04 17:37
Yuqing Zhu10-Oct-04 17:37 
Questionbar code coding using serial port? Pin
unambiguos8-Oct-04 19:01
unambiguos8-Oct-04 19:01 
GeneralCom basics Pin
Rajesh.J8-Oct-04 18:51
Rajesh.J8-Oct-04 18:51 
GeneralRe: Com basics Pin
User 21559710-Oct-04 19:30
User 21559710-Oct-04 19:30 
GeneralDevelop an IE plugin Pin
Asad Hussain8-Oct-04 9:20
Asad Hussain8-Oct-04 9:20 
GeneralRe: Develop an IE plugin Pin
Kurt Muellner12-Oct-04 22:20
Kurt Muellner12-Oct-04 22:20 
QuestionEnsuring an Excel app quits? Pin
Jeremy Ouellette7-Oct-04 12:27
Jeremy Ouellette7-Oct-04 12:27 
AnswerRe: Ensuring an Excel app quits? Pin
Jörgen Sigvardsson7-Oct-04 13:29
Jörgen Sigvardsson7-Oct-04 13:29 
GeneralRe: Ensuring an Excel app quits? Pin
Anonymous7-Oct-04 14:31
Anonymous7-Oct-04 14:31 
GeneralRe: Ensuring an Excel app quits? Pin
Jörgen Sigvardsson7-Oct-04 22:07
Jörgen Sigvardsson7-Oct-04 22:07 
GeneralRe: Ensuring an Excel app quits? Pin
Michael P Butler8-Oct-04 5:47
Michael P Butler8-Oct-04 5:47 
GeneralRe: Ensuring an Excel app quits? Pin
Jeremy Ouellette8-Oct-04 14:25
Jeremy Ouellette8-Oct-04 14:25 
GeneralPassing structs/classes from any language client. Pin
sergeyv20026-Oct-04 9:46
sergeyv20026-Oct-04 9:46 
GeneralRe: Passing structs/classes from any language client. Pin
Jörgen Sigvardsson7-Oct-04 13:17
Jörgen Sigvardsson7-Oct-04 13:17 

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.