Click here to Skip to main content
15,900,907 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: _tscanf oddness Pin
Joel Holdsworth11-Sep-04 22:33
Joel Holdsworth11-Sep-04 22:33 
GeneralRe: _tscanf oddness Pin
Gary R. Wheeler12-Sep-04 2:50
Gary R. Wheeler12-Sep-04 2:50 
GeneralRe: _tscanf oddness Pin
Joel Holdsworth12-Sep-04 2:55
Joel Holdsworth12-Sep-04 2:55 
GeneralAlpha in GDI Pin
Joel Holdsworth11-Sep-04 9:32
Joel Holdsworth11-Sep-04 9:32 
GeneralRe: Alpha in GDI Pin
Iain Clarke, Warrior Programmer13-Sep-04 3:41
Iain Clarke, Warrior Programmer13-Sep-04 3:41 
GeneralRe: Alpha in GDI Pin
Joel Holdsworth13-Sep-04 7:39
Joel Holdsworth13-Sep-04 7:39 
GeneralReplicating an instance in a multi-threaded app Pin
0v3rloader11-Sep-04 8:56
0v3rloader11-Sep-04 8:56 
GeneralRe: Replicating an instance in a multi-threaded app Pin
Gary R. Wheeler12-Sep-04 2:58
Gary R. Wheeler12-Sep-04 2:58 
That depends on what you mean by 'an app replicate itself'.

If you mean having a second process running the same code, in the same state, then you need to use CreateProcess() to start a second instance of your application, and pass sufficient information to the second instance for it to initialize itself to the same condition as the original. This will include information that lets you start an equivalent set of threads. This information could be passed in a file on the command line, or through some inter-process communication mechanism.

If you're looking for an API function like 'CreateDuplicateProcess()', I'm afraid you're out of luck.


Software Zen: delete this;
GeneralRe: Replicating an instance in a multi-threaded app Pin
0v3rloader12-Sep-04 5:48
0v3rloader12-Sep-04 5:48 
GeneralUsing a critical section in a high priority thread Pin
Chris Hills11-Sep-04 5:28
Chris Hills11-Sep-04 5:28 
GeneralRe: Using a critical section in a high priority thread Pin
Baris Kurtlutepe11-Sep-04 8:33
Baris Kurtlutepe11-Sep-04 8:33 
GeneralRe: Using a critical section in a high priority thread Pin
Andrew Walker12-Sep-04 14:37
Andrew Walker12-Sep-04 14:37 
GeneralRe: Using a critical section in a high priority thread Pin
Blake Miller13-Sep-04 6:17
Blake Miller13-Sep-04 6:17 
GeneralRe: Using a critical section in a high priority thread Pin
Andrew Walker13-Sep-04 12:58
Andrew Walker13-Sep-04 12:58 
GeneralVC++6 WinXP - Find Dialog and SerializeRaw don't work Pin
Kwakas11-Sep-04 4:49
Kwakas11-Sep-04 4:49 
GeneralMulti select list control Pin
Tyrus18211-Sep-04 4:17
Tyrus18211-Sep-04 4:17 
GeneralRe: Multi select list control Pin
Gary R. Wheeler12-Sep-04 3:02
Gary R. Wheeler12-Sep-04 3:02 
QuestionHow to issue the mouse_event without "SendInput" Pin
Member 244207211-Sep-04 3:50
Member 244207211-Sep-04 3:50 
GeneralMultiple document templates Pin
Jens Christiansen11-Sep-04 3:10
Jens Christiansen11-Sep-04 3:10 
Generalcalculating response time for a http request Pin
emmatty11-Sep-04 0:36
emmatty11-Sep-04 0:36 
GeneralRe: calculating response time for a http request Pin
Alexander M.,12-Sep-04 4:28
Alexander M.,12-Sep-04 4:28 
Generallist control selection Pin
Tyrus18210-Sep-04 18:51
Tyrus18210-Sep-04 18:51 
GeneralRe: list control selection Pin
Branislav11-Sep-04 4:05
Branislav11-Sep-04 4:05 
GeneralRe: list control selection Pin
Tyrus18211-Sep-04 4:20
Tyrus18211-Sep-04 4:20 
GeneralRe: list control selection Pin
Branislav11-Sep-04 5:04
Branislav11-Sep-04 5:04 

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.