Click here to Skip to main content
15,900,461 members
Home / Discussions / COM
   

COM

 
GeneralRe: invoke output parameters to javascript? Pin
Vi26-Aug-09 20:24
Vi26-Aug-09 20:24 
GeneralRe: invoke output parameters to javascript? Pin
Hongjun Ge7-Aug-09 5:57
Hongjun Ge7-Aug-09 5:57 
QuestionHow can I call a MSWord VBA macro from MFC *and* passing it arguments Pin
sashoalm4-Aug-09 4:34
sashoalm4-Aug-09 4:34 
QuestionCalling activeX method with array Pin
Nicolas Bonamy2-Aug-09 23:21
Nicolas Bonamy2-Aug-09 23:21 
QuestionICaptureGraphBuilder2:RenderStream strange problem Pin
Hristo-Bojilov30-Jul-09 11:48
Hristo-Bojilov30-Jul-09 11:48 
AnswerRe: ICaptureGraphBuilder2:RenderStream strange problem Pin
Hristo-Bojilov30-Jul-09 22:04
Hristo-Bojilov30-Jul-09 22:04 
QuestionCOM InprocServer32 Remoting Pin
sdk_tiger30-Jul-09 3:05
sdk_tiger30-Jul-09 3:05 
AnswerRe: COM InprocServer32 Remoting Pin
Baltoro2-Aug-09 11:34
Baltoro2-Aug-09 11:34 
A good online reference for COM programming is: Inside COM+[^], it covers alot of the same information as does Don Box's "Essential COM".
After reading your post several times (I found it a little confusing), I'm wondering: what your logic is for wanting to have your COM objects remoted from another machine, to a Local out-of-process server, and then to an in-process DLL server? Is this some kind of security scheme, or is it just not understanding the basic architecture of COM?
Also, this wasn't clear from your post: are you writing all three COM components yourself? Or, is the InprocServer32 DLL already compiled, and is a dependency for your client project?
An In-Proc server ALWAYS must be a DLL. The COM Library uses the registry entries for the COM CoClass along with the parameters the client provides when instantiating, using either CoCreateInstanceEx, or DllGetClassObject, as the case may be, to determine exactly how to configure the COM Server. It's actually more complicated than that.
Here are some of the relavant chapters from the above cited book:
Chapter Two, The Client, CoCreateInstanceEx[^]
Chapter Four: Apartments[^]
Chapter Thirteen, Executable Components[^]
Chapter Fifteen, Standard Marshaling[^]
And, of course, the one aspect of COM that mystifies everyone, Chapter Eighteen, Security[^]
Chapter Ninteen, The Network Protocol[^], is also very informative.
In answer to your original question, though, I would start out configuring my COM server to be as simple as possible, unless you have overriding security concerns. If you read Chapter Thirteen, you will see that much of the reason for creating an Out-of-Process Server instead of an In-Proc Server, is to control the actual number of COM objects being accessed simultaneously by separate client applications.
GeneralRe: COM InprocServer32 Remoting [modified] Pin
sdk_tiger3-Aug-09 3:47
sdk_tiger3-Aug-09 3:47 
GeneralDamn, that is mind-boggling Pin
Baltoro6-Aug-09 11:37
Baltoro6-Aug-09 11:37 
QuestionHow to capture File->Save event in MS Word Pin
sashoalm29-Jul-09 23:07
sashoalm29-Jul-09 23:07 
AnswerRe: How to capture File->Save event in MS Word Pin
Garth J Lancaster30-Jul-09 12:30
professionalGarth J Lancaster30-Jul-09 12:30 
GeneralRe: How to capture File->Save event in MS Word Pin
sashoalm30-Jul-09 21:10
sashoalm30-Jul-09 21:10 
QuestionHow to provide the navigation inside the page Pin
peace_smyle28-Jul-09 0:08
peace_smyle28-Jul-09 0:08 
QuestionWIA set device to use ADF feeder instead of glass. Pin
CodeBase2527-Jul-09 9:27
CodeBase2527-Jul-09 9:27 
QuestionInheritance in COM Pin
Karismatic25-Jul-09 2:08
Karismatic25-Jul-09 2:08 
AnswerRe: Inheritance in COM Pin
Md. Marufuzzaman25-Jul-09 18:41
professionalMd. Marufuzzaman25-Jul-09 18:41 
AnswerRe: Inheritance in COM Pin
CurtD 228-Aug-09 14:00
CurtD 228-Aug-09 14:00 
QuestionHow to access Variant type 8204 Pin
BeerFizz23-Jul-09 11:09
BeerFizz23-Jul-09 11:09 
AnswerRe: How to access Variant type 8204 Pin
Vi224-Jul-09 1:57
Vi224-Jul-09 1:57 
GeneralRe: How to access Variant type 8204 Pin
BeerFizz24-Jul-09 2:59
BeerFizz24-Jul-09 2:59 
GeneralRe: How to access Variant type 8204 Pin
Vi227-Jul-09 0:27
Vi227-Jul-09 0:27 
QuestionCom BHO In Vista/IE7 Pin
abhi11shukla23-Jul-09 2:39
abhi11shukla23-Jul-09 2:39 
QuestionVirtual PC and COM Server Pin
gehbitte22-Jul-09 2:41
gehbitte22-Jul-09 2:41 
AnswerRe: Virtual PC and COM Server Pin
Stuart Dootson22-Jul-09 7:04
professionalStuart Dootson22-Jul-09 7:04 

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.