Click here to Skip to main content
15,921,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow does the process create threads? Pin
binh.pham7-Apr-05 3:20
binh.pham7-Apr-05 3:20 
AnswerRe: How does the process create threads? Pin
toxcct7-Apr-05 3:33
toxcct7-Apr-05 3:33 
AnswerRe: How does the process create threads? Pin
David Crow7-Apr-05 4:46
David Crow7-Apr-05 4:46 
GeneralRe: How does the process create threads? Pin
Alexander M.,7-Apr-05 4:54
Alexander M.,7-Apr-05 4:54 
GeneralRe: How does the process create threads? Pin
David Crow7-Apr-05 4:57
David Crow7-Apr-05 4:57 
GeneralProblem adding a user control in my application Pin
a7corsair7-Apr-05 3:10
a7corsair7-Apr-05 3:10 
Generalproblem with singleton as lib Pin
javatheist7-Apr-05 2:42
javatheist7-Apr-05 2:42 
GeneralRe: problem with singleton as lib Pin
Blake Miller7-Apr-05 4:21
Blake Miller7-Apr-05 4:21 
Singleton 'pointer' ? This does not make any sense to me. You can't readily create a pointer to some memory segment that is the same address among all processes.

The address returned by any regular 'malloc' or 'new' calls is not guaranteed to be at the same address in all processes anyway. You can try to FORCE it using some combination of VirtualAlloc and memory mapped file calls, but you always, and I mean ALWAYS, run the risk that some DLL will load at that address anyway. So then by the time your app is running its main loop, you will not be able to allocoate memory at that address anyway.

If you want something 'shared' by all processes, your best bet is to create a memory mapped file and map to it from each process. Put your 'pointer independent' code in that shared memory.

If you want a fixed-size chunk of memory that is shared by all processes that is 'owned' by a DLL, then you can put some variables or data structures into a shared data segment.
GeneralBitmap 'editing' Pin
mcsherry7-Apr-05 2:26
mcsherry7-Apr-05 2:26 
GeneralRe: Bitmap 'editing' Pin
David Crow7-Apr-05 2:28
David Crow7-Apr-05 2:28 
GeneralRe: Bitmap 'editing' Pin
mcsherry7-Apr-05 2:35
mcsherry7-Apr-05 2:35 
GeneralRe: Bitmap 'editing' Pin
David Crow7-Apr-05 4:55
David Crow7-Apr-05 4:55 
GeneralRe: Bitmap 'editing' Pin
mcsherry7-Apr-05 21:48
mcsherry7-Apr-05 21:48 
GeneralPCA algorithm Pin
Rassul Yunussov7-Apr-05 1:37
Rassul Yunussov7-Apr-05 1:37 
GeneralRe: PCA algorithm Pin
jhwurmbach7-Apr-05 3:18
jhwurmbach7-Apr-05 3:18 
Generalmulti-column popup menu Pin
karmafx7-Apr-05 1:16
karmafx7-Apr-05 1:16 
GeneralRe: multi-column popup menu Pin
karmafx7-Apr-05 2:51
karmafx7-Apr-05 2:51 
GeneralHandles Pin
Balaji Krishna7-Apr-05 1:01
Balaji Krishna7-Apr-05 1:01 
GeneralI can't show a CStatic in Dialog!! Pin
thanh-hai.bui7-Apr-05 0:31
thanh-hai.bui7-Apr-05 0:31 
GeneralRe: I can't show a CStatic in Dialog!! Pin
toxcct7-Apr-05 0:35
toxcct7-Apr-05 0:35 
GeneralRe: I can't show a CStatic in Dialog!! Pin
BadJerry7-Apr-05 0:37
BadJerry7-Apr-05 0:37 
GeneralRe: I can't show a CStatic in Dialog!! Pin
thanh-hai.bui7-Apr-05 1:18
thanh-hai.bui7-Apr-05 1:18 
GeneralRe: I can't show a CStatic in Dialog!! Pin
BadJerry7-Apr-05 1:23
BadJerry7-Apr-05 1:23 
GeneralRe: I can't show a CStatic in Dialog!! Pin
toxcct7-Apr-05 1:57
toxcct7-Apr-05 1:57 
GeneralRe: I can't show a CStatic in Dialog!! Pin
BadJerry7-Apr-05 4:18
BadJerry7-Apr-05 4:18 

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.