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

COM

 
GeneralRe: Release in thread created by timer Pin
Jörgen Sigvardsson15-Jan-04 21:58
Jörgen Sigvardsson15-Jan-04 21:58 
GeneralRe: Release in thread created by timer Pin
Steve Schaneville16-Jan-04 12:20
professionalSteve Schaneville16-Jan-04 12:20 
QuestionBig difference between VB new operator and COM CoCreateInstance? Pin
Brigsoft15-Jan-04 9:54
Brigsoft15-Jan-04 9:54 
AnswerRe: Big difference between VB new operator and COM CoCreateInstance? Pin
Anonymous30-Jan-04 11:18
Anonymous30-Jan-04 11:18 
QuestionHow to fill the fields of IE's web page from within VB or C++ ? Pin
John Thomas15-Jan-04 6:10
John Thomas15-Jan-04 6:10 
AnswerRe: How to fill the fields of IE's web page from within VB or C++ ? Pin
Amit Dey24-Jan-04 11:51
Amit Dey24-Jan-04 11:51 
GeneralProblems with out of process server (COM) Pin
Anonymous15-Jan-04 0:26
Anonymous15-Jan-04 0:26 
GeneralRe: Problems with out of process server (COM) Pin
Mike Dimmick15-Jan-04 2:34
Mike Dimmick15-Jan-04 2:34 
Marshalling is always required when calling between different execution contexts. This can include calling between components in a single-threaded apartment and a multi-threaded apartment (e.g. if the calling thread in the executable called CoInitialize, OleInitialize or CoInitializeEx with the COINIT_APARTMENTTHREADED flag, and the component in the DLL is registered with ThreadingModel = Free). Marshalling is always required on a cross-process or cross-machine call.

Marshalling is the process of converting the call parameters into a suitable in-memory or network representation in order for the RPC library to transfer the call across the execution boundary. When received on the other side, unmarshalling is the process of converting back from the in-memory or network representation into a procedure call. The return value and any output parameters are then marshalled back to the caller.

COM looks in the registry on a per-IID basis to locate proxy/stub implementations. You can find them under HKEY_CLASSES_ROOT\Interface\{IID}\ProxyStubClsid32.

There are two cases in which you don't need to supply a proxy/stub implementation. The first is where you're only using standard interfaces, or interfaces defined by a third party. These should already be registered. If you only use IDispatch (Object in VB 6), you don't need a marshaller.

The second is where you're using only Automation-compatible types. For these, you can use the Automation marshaller, which uses the type library to marshal parameters. You must register the type library for this to work, by calling RegisterTypeLib.

The Automation marshaller goes by the name of PSOAInterface, and has a CLSID of {00020424-0000-0000-C000-000000000046}.
GeneralRe: Problems with out of process server (COM) Pin
Omar Alvi15-Jan-04 8:13
Omar Alvi15-Jan-04 8:13 
GeneralRe: Problems with out of process server (COM) Pin
Anonymous30-Jan-04 11:26
Anonymous30-Jan-04 11:26 
GeneralInside Ole Kraig BrockSchmidt, samples needed Pin
safee ullah13-Jan-04 23:35
safee ullah13-Jan-04 23:35 
GeneralWord Component Object Model Pin
Anonymous13-Jan-04 1:51
Anonymous13-Jan-04 1:51 
GeneralRe: Word Component Object Model Pin
Michael P Butler13-Jan-04 2:10
Michael P Butler13-Jan-04 2:10 
GeneralRe: Word Component Object Model Pin
Anonymous13-Jan-04 3:39
Anonymous13-Jan-04 3:39 
QuestionHow to get IStream on ordinary file ? Pin
vipsy12-Jan-04 22:11
vipsy12-Jan-04 22:11 
AnswerRe: How to get IStream on ordinary file ? Pin
Jörgen Sigvardsson13-Jan-04 9:39
Jörgen Sigvardsson13-Jan-04 9:39 
GeneralRe: How to get IStream on ordinary file ? Pin
vipsy13-Jan-04 17:58
vipsy13-Jan-04 17:58 
GeneralRe: How to get IStream on ordinary file ? Pin
Jörgen Sigvardsson13-Jan-04 21:48
Jörgen Sigvardsson13-Jan-04 21:48 
GeneralRe: How to get IStream on ordinary file ? Pin
vipsy14-Jan-04 0:39
vipsy14-Jan-04 0:39 
GeneralWhy IClassFactory Pin
Omar Alvi12-Jan-04 1:17
Omar Alvi12-Jan-04 1:17 
GeneralRe: Why IClassFactory Pin
Jörgen Sigvardsson13-Jan-04 9:47
Jörgen Sigvardsson13-Jan-04 9:47 
GeneralRe: Why IClassFactory Pin
Steve Schaneville15-Jan-04 19:04
professionalSteve Schaneville15-Jan-04 19:04 
GeneralRe: Why IClassFactory Pin
Jörgen Sigvardsson15-Jan-04 21:47
Jörgen Sigvardsson15-Jan-04 21:47 
GeneralFileSystemObject in VB doesn't work when the COM object is called from C# Pin
RickardB11-Jan-04 16:47
RickardB11-Jan-04 16:47 
GeneralRecommend some Good book on COM Pin
Omar Alvi10-Jan-04 5:55
Omar Alvi10-Jan-04 5:55 

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.