Click here to Skip to main content
15,914,416 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: change dll !!!!! Pin
Jon Hulatt6-Nov-02 23:28
Jon Hulatt6-Nov-02 23:28 
GeneralRe: change dll !!!!! Pin
maxyi7-Nov-02 1:48
maxyi7-Nov-02 1:48 
GeneralMessage cross threads Pin
stevenson6-Nov-02 22:19
stevenson6-Nov-02 22:19 
GeneralRe: Message cross threads Pin
stevenson6-Nov-02 22:22
stevenson6-Nov-02 22:22 
GeneralRe: Message cross threads Pin
Daniel Lohmann7-Nov-02 1:39
Daniel Lohmann7-Nov-02 1:39 
GeneralRe: Message cross threads Pin
Daniel Lohmann6-Nov-02 22:45
Daniel Lohmann6-Nov-02 22:45 
GeneralRe: Message cross threads Pin
includeh107-Nov-02 0:15
includeh107-Nov-02 0:15 
GeneralRe: Message cross threads Pin
Daniel Lohmann7-Nov-02 1:37
Daniel Lohmann7-Nov-02 1:37 
What? WTF | :WTF: OMG | :OMG:

Sorry, includeh10, but you seem to completly misunderstood the concept of threads.

You can pass pointers between threads as long as you make sure they reside in the same process. All threads inside a process share the same address space, therefore any address reference is valid and accessable by every thread. Actually this easiness of inter-thread communication is the main reason we use threads instead of processes.

COM puts a lot of "magic stuff" (like apartments, free threaded marshaller, ...) around this, because it has to guarantee that it even works if both thread reside in different processes or even on different machines.

--

Daniel Lohmann

http://www.losoft.de
(Hey, this page is worth looking! You can find some free and handy NT tools there Big Grin | :-D )
GeneralRe: Message cross threads Pin
includeh107-Nov-02 2:47
includeh107-Nov-02 2:47 
GeneralRe: Message cross threads Pin
stevenson7-Nov-02 13:55
stevenson7-Nov-02 13:55 
GeneralRe: Message cross threads Pin
Kelly Herald7-Nov-02 12:02
Kelly Herald7-Nov-02 12:02 
QuestionHow to: GDI Flicker Free ?? Pin
cleathley6-Nov-02 22:14
cleathley6-Nov-02 22:14 
AnswerRe: How to: GDI Flicker Free ?? Pin
Christian Graus6-Nov-02 22:24
protectorChristian Graus6-Nov-02 22:24 
AnswerRe: How to: GDI Flicker Free ?? Pin
KarstenK7-Nov-02 0:13
mveKarstenK7-Nov-02 0:13 
GeneralIE reuse Pin
rrrado6-Nov-02 22:10
rrrado6-Nov-02 22:10 
GeneralRe: IE reuse Pin
Stephane Rodriguez.6-Nov-02 23:03
Stephane Rodriguez.6-Nov-02 23:03 
GeneralRe: IE reuse Pin
rrrado7-Nov-02 2:29
rrrado7-Nov-02 2:29 
GeneralColor representation Pin
ISIS556-Nov-02 20:08
ISIS556-Nov-02 20:08 
GeneralRe: Color representation Pin
Stephane Rodriguez.6-Nov-02 20:45
Stephane Rodriguez.6-Nov-02 20:45 
GeneralRe: Color representation Pin
Christian Graus6-Nov-02 20:46
protectorChristian Graus6-Nov-02 20:46 
GeneralRe: Color representation Pin
ISIS556-Nov-02 21:04
ISIS556-Nov-02 21:04 
GeneralRe: Color representation Pin
Christian Graus6-Nov-02 21:07
protectorChristian Graus6-Nov-02 21:07 
GeneralPLZ Help me :) Pin
SUPER_PROG6-Nov-02 19:02
SUPER_PROG6-Nov-02 19:02 
GeneralRe: PLZ Help me :) Pin
Christian Graus6-Nov-02 19:28
protectorChristian Graus6-Nov-02 19:28 
GeneralRe: PLZ Help me :) Pin
Stephane Rodriguez.6-Nov-02 19:41
Stephane Rodriguez.6-Nov-02 19:41 

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.