Click here to Skip to main content
15,913,939 members
Home / Discussions / COM
   

COM

 
GeneralRe: Load COM exe/dll Pin
Tom Archer30-Apr-02 22:38
Tom Archer30-Apr-02 22:38 
GeneralRe: Load COM dll Pin
soptest2-May-02 12:50
soptest2-May-02 12:50 
QuestionHow to pass a HMenu over COM ? Pin
Brian van der Beek30-Apr-02 5:28
Brian van der Beek30-Apr-02 5:28 
AnswerRe: How to pass a HMenu over COM ? Pin
soptest2-May-02 12:54
soptest2-May-02 12:54 
GeneralRe: How to pass a HMenu over COM ? Pin
Brian van der Beek2-May-02 20:27
Brian van der Beek2-May-02 20:27 
GeneralRe: How to pass a HMenu over COM ? Pin
soptest3-May-02 6:50
soptest3-May-02 6:50 
GeneralConnection Point - Console Client Pin
Anil.S29-Apr-02 0:11
Anil.S29-Apr-02 0:11 
GeneralCOM+ LCE Question Pin
Tom Archer28-Apr-02 21:43
Tom Archer28-Apr-02 21:43 
I'm accustomed to using COM in one of two ways:


  • As a client when I need to call into an interface for a given method to perform a specific task
  • As a component that performs a finite task


However, with the COM+ Loosely Coupled Events I'm confused about how a particular scenario would play out. Let's say I have a CodeProject like application where I want certain subsystems to be alerted any time a new article has been added to the system. Therefore, ...


  1. I create an ATL project (NewArticle) and add an ATL component to it with an interface called INewArticleEvent and a method called NewArticle.
  2. I create a new COM+ application (NewArticleApp) and add the INewArticleEvent component as an event class.
  3. I create another ATL project (LatestUpates) and add an ATL component to it and implement the INewArticleEvent interface.
  4. For this second component, I create a new COM+ application (LatestUpdatesApp) and add the component as a regular class (as opposed to an event class).
  5. I add a subscription to the component and specify the INewArticle.NewArticle interface.
  6. Now when I write code to fire the NewArticle event, the subscribing component in my LatestUpdates component is called as it should be by COM+.


So, it's all good, right? However, here's my question. What if I want to update a currently GUI as a result of an event having been fired? I have this LatestUpdates component that's getting called. But, how can I somehow tie that to my MFC application so that I now list the new article on it's form view?

I'm sure this is COM+ 101, but I'm at a loss.

Thanks for anyone that can help me!!!


Cheers,
Tom Archer
Author, Inside C#

A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the affairs of others.
GeneralRe: COM+ LCE Question Pin
Paul M Watt28-Apr-02 22:16
mentorPaul M Watt28-Apr-02 22:16 
GeneralRe: COM+ LCE Question Pin
Tom Archer29-Apr-02 2:53
Tom Archer29-Apr-02 2:53 
GeneralRe: COM+ LCE Question Pin
Joao Vaz29-Apr-02 3:34
Joao Vaz29-Apr-02 3:34 
GeneralRe: COM+ LCE Question Pin
Tom Archer29-Apr-02 3:52
Tom Archer29-Apr-02 3:52 
GeneralRe: COM+ LCE Question Pin
Joao Vaz29-Apr-02 4:21
Joao Vaz29-Apr-02 4:21 
GeneralRe: COM+ LCE Question Pin
Joao Vaz29-Apr-02 4:33
Joao Vaz29-Apr-02 4:33 
GeneralRe: COM+ LCE Question Pin
Tom Archer29-Apr-02 9:32
Tom Archer29-Apr-02 9:32 
GeneralRe: COM+ LCE Question Pin
Joao Vaz29-Apr-02 23:04
Joao Vaz29-Apr-02 23:04 
GeneralRe: COM+ LCE Question Pin
Tom Archer29-Apr-02 3:13
Tom Archer29-Apr-02 3:13 
Questioncan you give some advice Pin
viruslee27-Apr-02 21:58
viruslee27-Apr-02 21:58 
AnswerRe: can you give some advice Pin
Tom Archer27-Apr-02 23:49
Tom Archer27-Apr-02 23:49 
GeneralRe: can you give some advice Pin
viruslee28-Apr-02 3:33
viruslee28-Apr-02 3:33 
AnswerRe: can you give some advice Pin
Michael P Butler28-Apr-02 3:51
Michael P Butler28-Apr-02 3:51 
QuestionIPC through COM? Pin
27-Apr-02 3:54
suss27-Apr-02 3:54 
AnswerRe: IPC through COM? Pin
Paul M Watt28-Apr-02 6:47
mentorPaul M Watt28-Apr-02 6:47 
GeneralActiveX Control: Strange RichEdit related linker errors Pin
Chen Venkataraman26-Apr-02 4:42
Chen Venkataraman26-Apr-02 4:42 
GeneralRe: ActiveX Control: Strange RichEdit related linker errors Pin
Chen Venkataraman26-Apr-02 4:49
Chen Venkataraman26-Apr-02 4:49 

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.