Click here to Skip to main content
15,911,848 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDrawLine Pin
Asaf16-Jul-00 23:53
Asaf16-Jul-00 23:53 
GeneralRe: DrawLine Pin
Dave Lorde19-Jul-00 13:02
Dave Lorde19-Jul-00 13:02 
GeneralI'm looking for a report writer Pin
Per G16-Jul-00 23:04
Per G16-Jul-00 23:04 
GeneralRe: I'm looking for a report writer Pin
Stéphane Gibier17-Jul-00 4:50
Stéphane Gibier17-Jul-00 4:50 
GeneralCall Graph Pin
kannank14-Jul-00 22:49
kannank14-Jul-00 22:49 
GeneralFiring events from a Thread... Pin
Daniel Fiske14-Jul-00 2:23
Daniel Fiske14-Jul-00 2:23 
GeneralRe: Firing events from a Thread... Pin
Pere Mitjavila14-Jul-00 23:34
Pere Mitjavila14-Jul-00 23:34 
GeneralRe: Firing events from a Thread... Pin
Alex Gorev17-Jul-00 4:05
Alex Gorev17-Jul-00 4:05 
Hi,

Events are signaled by calling the Invoke method of an IDispatch interface supplied by container. The interface lives in the apartment of its own thread, which is also the one containing the control itself. To comply with the STA model, we can only safely call this interface's methods from the thread in which it was created. If the control wants to signal an event from a different thread it must Marshal the IDispatch interface into the IStream first and then UnMarshal it. And of course it must call CoInitialize() too.

To Marshal/UnMarshal interface pointers you can use my favorite functions: CoMarshalInterThreadInterfaceInStream(...) and CoGetInterfaceAndReleaseStream(...).

Regards,
Alex Gorev,
Dundas Software.

GeneralProperty Sheet problem Pin
QUErot13-Jul-00 23:48
sussQUErot13-Jul-00 23:48 
GeneralMapViewOfFile question Pin
drkar13-Jul-00 8:51
drkar13-Jul-00 8:51 
GeneralRe: MapViewOfFile question Pin
Blake Miller13-Jul-00 20:08
Blake Miller13-Jul-00 20:08 
GeneralLPT1 port Pin
Helium13-Jul-00 8:27
Helium13-Jul-00 8:27 
GeneralPush button Pin
Roger13-Jul-00 7:13
Roger13-Jul-00 7:13 
GeneralRe: Push button Pin
Erik Thompson13-Jul-00 8:24
sitebuilderErik Thompson13-Jul-00 8:24 
GeneralRe: Push button Pin
Roger13-Jul-00 8:58
Roger13-Jul-00 8:58 
GeneralRe: Push button Pin
Erik Thompson13-Jul-00 13:19
sitebuilderErik Thompson13-Jul-00 13:19 
GeneralRe: Push button Pin
Roger13-Jul-00 13:39
Roger13-Jul-00 13:39 
GeneralRe: Push button Pin
Roger14-Jul-00 2:45
Roger14-Jul-00 2:45 
GeneralRe: Push button Pin
Erik Thompson14-Jul-00 8:01
sitebuilderErik Thompson14-Jul-00 8:01 
GeneralProperty pages dinamic creation (setting a different title for each one) Pin
Joan Murt12-Jul-00 7:18
sussJoan Murt12-Jul-00 7:18 
Generallooking for a control is in a window Pin
nhquoc12-Jul-00 0:26
nhquoc12-Jul-00 0:26 
GeneralRe: looking for a control is in a window Pin
Paolo Messina14-Jul-00 2:47
professionalPaolo Messina14-Jul-00 2:47 
QuestionDoes anybody can explian how the object are serialized to storeage? Pin
Member 291111-Jul-00 19:51
Member 291111-Jul-00 19:51 
AnswerRe: Does anybody can explian how the object are serialized to storeage? Pin
Dave Lorde19-Jul-00 13:57
Dave Lorde19-Jul-00 13:57 
Generalautodecting proxy settings Pin
David Cecil11-Jul-00 19:49
David Cecil11-Jul-00 19:49 

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.