Click here to Skip to main content
15,896,063 members
Home / Discussions / COM
   

COM

 
AnswerRe: DLL missing? Pin
tom5720078-Apr-09 2:57
tom5720078-Apr-09 2:57 
QuestionVB ActiveX in C# Pin
tvks8-Apr-09 2:13
tvks8-Apr-09 2:13 
Questionhow to fix the IWebBrowser2 refresh problem Pin
benpeng2-Apr-09 22:56
benpeng2-Apr-09 22:56 
QuestionFree threaded model Pin
_80862-Apr-09 21:25
_80862-Apr-09 21:25 
AnswerRe: Free threaded model Pin
Roger Stoltz2-Apr-09 21:50
Roger Stoltz2-Apr-09 21:50 
GeneralRe: Free threaded model Pin
_80862-Apr-09 22:43
_80862-Apr-09 22:43 
GeneralRe: Free threaded model Pin
_80862-Apr-09 22:53
_80862-Apr-09 22:53 
AnswerRe: Free threaded model Pin
Roger Stoltz2-Apr-09 23:04
Roger Stoltz2-Apr-09 23:04 
Okay.
So how about starting with the articles here at CP?
Lim Bio Liong has written a nice article series that can be found here[^].

There's a lot to be learned about COM and especially the understanding of the concept of apartments.
In short it boils down to that a thread that creates a COM server must always pump messages; it has to do with marshalling and RPC (deep technical stuff).
Free-threading looks a little bit different depending on whether the server is an in-process or an out-of-process server. But in both cases it means that the server will be called in different thread contexts and thus thread synchronization is essential inside the server. To use free-threading you have to create the server inside an MTA. Creating the server inside an STA guarantees that the server will nly be called from the same thread context as long as you obey the COM rules and marshal interfaces properly across apartment boundaries.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown


GeneralRe: Free threaded model Pin
_80862-Apr-09 23:16
_80862-Apr-09 23:16 
QuestionHow to set the URL property of a WMP object in a Word .doc file? Pin
wangdave2-Apr-09 14:49
wangdave2-Apr-09 14:49 
QuestionLooking for links, books, articles on building .NET assemblies for use as COM servers Pin
cpkilekofp2-Apr-09 10:07
cpkilekofp2-Apr-09 10:07 
AnswerRe: Looking for links, books, articles on building .NET assemblies for use as COM servers Pin
Baltoro4-Apr-09 8:50
Baltoro4-Apr-09 8:50 
QuestionControl connection to EXE when calling CreateDispatch Pin
Tim Cook2-Apr-09 5:50
Tim Cook2-Apr-09 5:50 
AnswerRe: Control connection to EXE when calling CreateDispatch [modified] Pin
Baltoro4-Apr-09 10:00
Baltoro4-Apr-09 10:00 
GeneralSorry Pin
Baltoro4-Apr-09 11:11
Baltoro4-Apr-09 11:11 
GeneralRe: Sorry Pin
Tim Cook6-Apr-09 8:00
Tim Cook6-Apr-09 8:00 
GeneralI'll Try to Explain Clearly Pin
Baltoro9-Apr-09 10:32
Baltoro9-Apr-09 10:32 
GeneralRe: I'll Try to Explain Clearly Pin
Tim Cook17-Apr-09 5:31
Tim Cook17-Apr-09 5:31 
Questionactivex loading from tomcat 6 Pin
aysl2-Apr-09 5:28
aysl2-Apr-09 5:28 
QuestionTroubles embedding IE8 WebBrowser control Pin
Vlasta_1-Apr-09 5:11
Vlasta_1-Apr-09 5:11 
QuestionUsing COM to receive cell updates from excel in VB .NET Pin
mmiller0391-Apr-09 5:07
mmiller0391-Apr-09 5:07 
Questionhow to get mail address in outlook express Pin
nikhil3131-Mar-09 22:25
nikhil3131-Mar-09 22:25 
QuestionC++ COM EventHandler: How to catch COM events from Delphi COM Server / VC6 Pin
ipforce30-Mar-09 4:57
ipforce30-Mar-09 4:57 
AnswerRe: C++ COM EventHandler: How to catch COM events from Delphi COM Server / VC6 Pin
Jonathan Davies2-Apr-09 5:32
Jonathan Davies2-Apr-09 5:32 
GeneralRe: C++ COM EventHandler: How to catch COM events from Delphi COM Server / VC6 Pin
ipforce2-Apr-09 6:08
ipforce2-Apr-09 6:08 

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.