Click here to Skip to main content
15,889,822 members
Home / Discussions / COM
   

COM

 
AnswerRe: Good online tutorial please Pin
Steve S18-Jul-06 1:26
Steve S18-Jul-06 1:26 
GeneralRe: Good online tutorial please Pin
Kiran Pinjala19-Jul-06 2:35
Kiran Pinjala19-Jul-06 2:35 
Questionhelp Pin
With_problem17-Jul-06 16:48
With_problem17-Jul-06 16:48 
QuestionCompiling IDL with MIDL Pin
Mark F.17-Jul-06 3:38
Mark F.17-Jul-06 3:38 
AnswerRe: Compiling IDL with MIDL Pin
Steve S17-Jul-06 4:58
Steve S17-Jul-06 4:58 
GeneralRe: Compiling IDL with MIDL Pin
Mark F.17-Jul-06 5:07
Mark F.17-Jul-06 5:07 
Questioncompile Activex as exe executable? Pin
dude_445316915-Jul-06 20:34
dude_445316915-Jul-06 20:34 
AnswerRe: compile Activex as exe executable? Pin
Mike Dimmick16-Jul-06 6:41
Mike Dimmick16-Jul-06 6:41 
Generally you only use local servers (out-of-process COM objects) when the COM objects form an automation model for a different application, or for OLE linking/embedding. You might also do it if you need a separate process space, basically if you need a different security token, a huge amount of virtual memory or you're not confident in the reliability of the code. For almost all other situations you would want your COM objects to run in-process for performance.

For a local server, you must provide a marshaller. This means either sticking to Automation types and using the Automation marshaller (generating and registering a type library), generating a proxy/stub DLL, or doing it yourself. There are many scenarios in-process where you also need a marshaller, but for the simple client-calls-object-on-same-thread case (and the thread and object have compatible apartment settings) you don't.

Microsoft recommended practice these days is to use Windows Installer to install your program, and to use the Class table to register your classes, avoiding self-registration. This is so Windows Installer can detect changes to and repair the registration information if it gets overwritten.

When trying to create an instance of your class, COM can call into an in-process server to create a class factory object (DllGetClassObject). COM has no way to call into your out-of-process server directly, so you must tell it which class objects you have using CoRegisterClassObject. The MFC equivalent is to call COleObject::RegisterAll, which registers all class objects that you've declared using DECLARE_OLECREATE.

Stability. What an interesting concept. -- Chris Maunder
Questiondoubt on Activex control Pin
sunita ramesh15-Jul-06 1:03
sunita ramesh15-Jul-06 1:03 
AnswerRe: doubt on Activex control Pin
Mike Dimmick16-Jul-06 6:15
Mike Dimmick16-Jul-06 6:15 
GeneralRe: doubt on Activex control Pin
William.Wang17-Jul-06 23:40
William.Wang17-Jul-06 23:40 
GeneralRe: doubt on Activex control Pin
sunita ramesh18-Jul-06 1:23
sunita ramesh18-Jul-06 1:23 
Questionassigning an accelerator for an explorer bar (CATID - INFOBAND) and making it default view Pin
alianyn14-Jul-06 10:40
alianyn14-Jul-06 10:40 
AnswerRe: if anyone is ever interested in how i eventually did it Pin
alianyn18-Jul-06 3:45
alianyn18-Jul-06 3:45 
QuestionComponent Services Info Pin
vertigo_one14-Jul-06 7:04
vertigo_one14-Jul-06 7:04 
Questionproblem with the creation of an instance of ActiveX at runtime and with the invocation of a method from this component Pin
masanne13-Jul-06 23:58
masanne13-Jul-06 23:58 
QuestionCreate ActiveX from dialog used other ActiveX Pin
majco33313-Jul-06 22:40
majco33313-Jul-06 22:40 
QuestionCOM concept help - order of functions or parameters Pin
J.B.13-Jul-06 21:43
J.B.13-Jul-06 21:43 
AnswerRe: COM concept help - order of functions or parameters Pin
Steve S13-Jul-06 22:05
Steve S13-Jul-06 22:05 
GeneralRe: COM concept help - order of functions or parameters Pin
J.B.13-Jul-06 22:16
J.B.13-Jul-06 22:16 
QuestionHow to create object by Knowing Interface only Pin
kanduripavan13-Jul-06 1:40
kanduripavan13-Jul-06 1:40 
AnswerRe: How to create object by Knowing Interface only Pin
Alex Hazanov13-Jul-06 10:01
Alex Hazanov13-Jul-06 10:01 
GeneralRe: How to create object by Knowing Interface only Pin
kanduripavan13-Jul-06 18:50
kanduripavan13-Jul-06 18:50 
GeneralRe: How to create object by Knowing Interface only Pin
Steve S13-Jul-06 22:09
Steve S13-Jul-06 22:09 
GeneralRe: How to create object by Knowing Interface only Pin
kanduripavan14-Jul-06 0:03
kanduripavan14-Jul-06 0:03 

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.