Click here to Skip to main content
16,006,594 members
Home / Discussions / COM
   

COM

 
GeneralRe: Typedef enum in IDL Pin
soptest3-May-02 6:57
soptest3-May-02 6:57 
GeneralRe: Typedef enum in IDL Pin
Jerome Conus5-May-02 21:50
Jerome Conus5-May-02 21:50 
GeneralRe: Typedef enum in IDL Pin
soptest6-May-02 10:26
soptest6-May-02 10:26 
GeneralCOM - Directx Pin
Sameer Maggon2-May-02 23:32
Sameer Maggon2-May-02 23:32 
QuestionOnDraw in composite control ?? Pin
Brian van der Beek2-May-02 20:36
Brian van der Beek2-May-02 20:36 
QuestionHow to validate a connection point? Pin
Todd Smith2-May-02 11:32
Todd Smith2-May-02 11:32 
AnswerRe: How to validate a connection point? Pin
soptest2-May-02 12:01
soptest2-May-02 12:01 
General"Single Instance" COM Server and usage question Pin
Matt Philmon1-May-02 2:24
Matt Philmon1-May-02 2:24 
I have a web application that utilizes a large assortment of client side COM DLL's written in ATL COM. One of the components is a COM server (EXE) written to be Single Instance (at least in the class factory). It's a multi-threaded apartment to accomplish all the tasks required of it. Therefore, to be useable by scripting languages like VB Script and JavaScript it needs a wrapper object written as an STA. This "Interface" object is a COM DLL that either starts the COM server or connects to a running instance. In this way, many of the interface objects can be loaded simultaneously giving each frame in the browser it's own object to instantiate and use.

My question is the general usage of the COM server itself. In this project, the COM server EXE is being continually polled for information by the Interface object which uses connection points and available IDispatch interfaces to deliver content to the frame in the web page that's loaded it. In this case, the COM server's methods can be accessed by many different objects simultaneously. The COM server has 2 "data stores" using STL maps. These stores are each protected by their own mutexes and are therefore "safe" from being hit simultaneously. However, do I also need to protect each exposed function call with it's own mutex? I'm a bit new to using a Single Instance object in this way so I'm not sure what kinds of protection I need to include in it... yes, the object's methods are currently unprotected and yes it could very well be called into simultaneously from various interface objects.

Thanks for the help.
Matt
GeneralRe: "Single Instance" COM Server and usage question Pin
soptest2-May-02 12:27
soptest2-May-02 12:27 
GeneralLoad COM exe/dll Pin
30-Apr-02 10:48
suss30-Apr-02 10:48 
GeneralRe: Load COM exe/dll Pin
Matt Philmon30-Apr-02 15:20
Matt Philmon30-Apr-02 15:20 
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 
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 

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.