Click here to Skip to main content
15,885,036 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: performance of C,C++ programs Pin
toxcct4-Apr-06 3:46
toxcct4-Apr-06 3:46 
GeneralRe: performance of C,C++ programs Pin
Maximilien4-Apr-06 3:14
Maximilien4-Apr-06 3:14 
GeneralRe: performance of C,C++ programs Pin
vikramlinux4-Apr-06 20:16
vikramlinux4-Apr-06 20:16 
AnswerRe: performance of C,C++ programs Pin
Maximilien4-Apr-06 3:10
Maximilien4-Apr-06 3:10 
AnswerRe: performance of C,C++ programs Pin
Ștefan-Mihai MOGA4-Apr-06 3:11
professionalȘtefan-Mihai MOGA4-Apr-06 3:11 
AnswerRe: performance of C,C++ programs Pin
toxcct4-Apr-06 3:42
toxcct4-Apr-06 3:42 
QuestionMarshalling Pin
viperlogic4-Apr-06 2:36
viperlogic4-Apr-06 2:36 
AnswerRe: Marshalling Pin
Roger Stoltz4-Apr-06 3:03
Roger Stoltz4-Apr-06 3:03 
Whenever you cross apartment boundaries you have to marshal the interface.
An apartment is, in simple words, a thread that has made a successful call to ::CoInitialize() or similar. Each thread that will use COM in any way have to initialize COM by calling ::CoInitialize(), which tells the COM subsystem that this-apartment-is-a-single-threaded-apartment (STA). If you want your thread to be added the the multithreaded apartment of the process (MTA), because there can be only one, you have to call ::CoInitializeEx() with COINIT_MULTITRHEADED.

The easiest way to marshal an interface is to use ::CoMarshalInterThreadInterfaceInStream()[^] and ::CoGetInterfaceAndReleaseStream.

Hope this helps
--
Roger


It's supposed to be hard, otherwise anybody could do it!
GeneralRe: Marshalling Pin
viperlogic4-Apr-06 3:22
viperlogic4-Apr-06 3:22 
GeneralRe: Marshalling Pin
YaronNir4-Apr-06 4:00
YaronNir4-Apr-06 4:00 
AnswerRe: Marshalling Pin
Roger Stoltz4-Apr-06 4:01
Roger Stoltz4-Apr-06 4:01 
Questionproblem in OnDraw Pin
Anu_Bala4-Apr-06 2:34
Anu_Bala4-Apr-06 2:34 
AnswerRe: problem in OnDraw Pin
Cedric Moonen4-Apr-06 2:49
Cedric Moonen4-Apr-06 2:49 
AnswerRe: problem in OnDraw Pin
Hamid_RT4-Apr-06 3:15
Hamid_RT4-Apr-06 3:15 
Questionhardware identify in linux operating system Pin
ss20064-Apr-06 2:25
ss20064-Apr-06 2:25 
AnswerRe: hardware identify in linux operating system Pin
Ștefan-Mihai MOGA4-Apr-06 2:44
professionalȘtefan-Mihai MOGA4-Apr-06 2:44 
QuestionIs there any way to mix audio and video files? Pin
atimpoo4-Apr-06 2:10
atimpoo4-Apr-06 2:10 
AnswerRe: Is there any way to mix audio and video files? Pin
Ștefan-Mihai MOGA4-Apr-06 2:20
professionalȘtefan-Mihai MOGA4-Apr-06 2:20 
QuestionVisual Leak Detector Prob Pin
thepersonof4-Apr-06 1:32
thepersonof4-Apr-06 1:32 
AnswerRe: Visual Leak Detector Prob Pin
Cedric Moonen4-Apr-06 1:44
Cedric Moonen4-Apr-06 1:44 
GeneralRe: Visual Leak Detector Prob Pin
thepersonof4-Apr-06 1:51
thepersonof4-Apr-06 1:51 
GeneralRe: Visual Leak Detector Prob Pin
Cedric Moonen4-Apr-06 2:03
Cedric Moonen4-Apr-06 2:03 
GeneralRe: Visual Leak Detector Prob Pin
toxcct4-Apr-06 2:19
toxcct4-Apr-06 2:19 
GeneralRe: Visual Leak Detector Prob Pin
Cedric Moonen4-Apr-06 2:22
Cedric Moonen4-Apr-06 2:22 
AnswerRe: Visual Leak Detector Prob Pin
toxcct4-Apr-06 1:56
toxcct4-Apr-06 1:56 

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.