Click here to Skip to main content
15,911,478 members
Home / Discussions / COM
   

COM

 
GeneralRe: in-proc ==>> Out-of-proc Pin
In-At15-Jul-03 2:42
In-At15-Jul-03 2:42 
GeneralSpeed of COM Pin
Jo Fredrickson6-Jul-03 21:02
Jo Fredrickson6-Jul-03 21:02 
GeneralRe: Speed of COM Pin
In-At6-Jul-03 23:30
In-At6-Jul-03 23:30 
GeneralRe: Speed of COM Pin
In-At6-Jul-03 23:58
In-At6-Jul-03 23:58 
GeneralRe: Speed of COM Pin
Jo Fredrickson7-Jul-03 16:03
Jo Fredrickson7-Jul-03 16:03 
GeneralRe: Speed of COM Pin
In-At7-Jul-03 19:59
In-At7-Jul-03 19:59 
GeneralRe: Speed of COM Pin
Mike Dimmick12-Jul-03 8:10
Mike Dimmick12-Jul-03 8:10 
GeneralRe: Speed of COM Pin
Jo Fredrickson14-Jul-03 18:05
Jo Fredrickson14-Jul-03 18:05 
Thanks Mike, for such a detailed response!

I have been working through each of your points.

My COM objects and the exe use apartment threading, and a dual interface.
(All of the components are written in VC++).

The exe initialises COM with ...

struct InitOle {
InitOle() { ::CoInitialize(NULL); }
~InitOle() { ::CoUninitialize(); }
} _init_InitOle_;


And then creates the COM objects with ...

CoCreateInstance( CLSID_SubstrateMgr,
NULL,
CLSCTX_INPROC_SERVER,
IID_ISubstrateMgr,
(void **) &g_pSubstrateMgr);

Is this the fastest method?

I have used all of the optimisation settings you suggested, although I can't see any noticable difference.
I believe you are right about the database access being the trouble spot. If the COM calls aren't that much worse than a function call, I can leave my COM interfaces alone and focus on the database access.

Thanks again for your help.
Jo Smile | :)
GeneralRe: Speed of COM Pin
Gerald Schwab20-Jul-03 17:23
Gerald Schwab20-Jul-03 17:23 
GeneralATL Control sinks Pin
Ancient Dragon4-Jul-03 3:32
Ancient Dragon4-Jul-03 3:32 
GeneralAccessing COM objects Pin
Moonspellwizard3-Jul-03 19:44
Moonspellwizard3-Jul-03 19:44 
GeneralRe: Accessing COM objects Pin
In-At3-Jul-03 20:17
In-At3-Jul-03 20:17 
GeneralADO Pin
Anthony98873-Jul-03 9:51
Anthony98873-Jul-03 9:51 
GeneralRe: ADO Pin
Anonymous3-Jul-03 11:51
Anonymous3-Jul-03 11:51 
GeneralMultiple instances are launched Pin
In-At2-Jul-03 20:42
In-At2-Jul-03 20:42 
GeneralIn-proc to out-of-proc Pin
In-At2-Jul-03 20:19
In-At2-Jul-03 20:19 
GeneralRe: In-proc to out-of-proc Pin
valikac3-Jul-03 7:39
valikac3-Jul-03 7:39 
GeneralRe: In-proc to out-of-proc Pin
In-At3-Jul-03 19:54
In-At3-Jul-03 19:54 
GeneralRe: In-proc to out-of-proc Pin
valikac4-Jul-03 5:00
valikac4-Jul-03 5:00 
GeneralHelpppppp! Pin
safee ullah2-Jul-03 20:07
safee ullah2-Jul-03 20:07 
Generalhelp!!,there are some errors in my program Pin
yingkou2-Jul-03 3:35
yingkou2-Jul-03 3:35 
Generalremote connection to server Pin
satishsilla2-Jul-03 2:59
satishsilla2-Jul-03 2:59 
Generaldefault properties on COM interfaces Pin
Dave Bryant1-Jul-03 16:26
Dave Bryant1-Jul-03 16:26 
GeneralRe: default properties on COM interfaces Pin
Mil101-Jul-03 18:59
Mil101-Jul-03 18:59 
GeneralRe: default properties on COM interfaces Pin
Dave Bryant2-Jul-03 10:35
Dave Bryant2-Jul-03 10:35 

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.