Click here to Skip to main content
15,867,686 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Please give me some suggestion! Pin
Cool Ju4-Jan-06 23:45
Cool Ju4-Jan-06 23:45 
GeneralRe: Please give me some suggestion! Pin
LaHaHa5-Jan-06 14:28
LaHaHa5-Jan-06 14:28 
QuestionFile Transfer Client/Server (Proof Read) Pin
thes3cr3t14-Jan-06 12:32
thes3cr3t14-Jan-06 12:32 
AnswerRe: File Transfer Client/Server (Proof Read) Pin
sunit54-Jan-06 20:06
sunit54-Jan-06 20:06 
Questionresize Frame Pin
LeeeNN4-Jan-06 11:50
LeeeNN4-Jan-06 11:50 
AnswerRe: resize Frame Pin
Christian Graus4-Jan-06 12:31
protectorChristian Graus4-Jan-06 12:31 
AnswerRe: resize Frame Pin
vikas amin4-Jan-06 20:07
vikas amin4-Jan-06 20:07 
QuestionManaging Threads in VC++ Pin
pavanbabut4-Jan-06 10:43
pavanbabut4-Jan-06 10:43 
Hi,

I have created threads using CreateThread (6 parameters) format in vc++ as following

DWORD ThreadId_1,ThreadId_2;
CreateThread(NULL,0,StartThread1,CREATE_SUSPENDED,0,&ThreadId_1);
CreateThread(NULL,0,StartThread2,CREATE_SUSPENDED,0,&ThreadId_2);

where StartThread1 and StartThread2 are the thread functions correspondingly. 'this' refers to my present main application.

I would like to suspend and resume the threads at any point of time, but I didn't understand how to use SuspendThread and ResumeThread functions. I would really appreciate if someone can help me on this (how to suspend, resume and close threads whereever I need) using the above example.

thanks,
-Pav

-- modified at 17:09 Wednesday 4th January, 2006
AnswerRe: Managing Threads in VC++ Pin
Blake Miller4-Jan-06 11:44
Blake Miller4-Jan-06 11:44 
GeneralRe: Managing Threads in VC++ Pin
pavanbabut4-Jan-06 12:04
pavanbabut4-Jan-06 12:04 
GeneralRe: Managing Threads in VC++ Pin
Blake Miller4-Jan-06 12:23
Blake Miller4-Jan-06 12:23 
GeneralRe: Managing Threads in VC++ Pin
vikas amin4-Jan-06 18:21
vikas amin4-Jan-06 18:21 
QuestionProblem with SetBkColor Pin
KellyR4-Jan-06 10:00
KellyR4-Jan-06 10:00 
AnswerRe: Problem with SetBkColor Pin
Office Lineman4-Jan-06 10:09
Office Lineman4-Jan-06 10:09 
GeneralRe: Problem with SetBkColor Pin
KellyR4-Jan-06 10:20
KellyR4-Jan-06 10:20 
GeneralRe: Problem with SetBkColor Pin
Office Lineman4-Jan-06 10:36
Office Lineman4-Jan-06 10:36 
QuestionTEXT FILE? Pin
pvatanpour4-Jan-06 9:08
pvatanpour4-Jan-06 9:08 
AnswerRe: TEXT FILE? Pin
Wes Aday4-Jan-06 9:35
professionalWes Aday4-Jan-06 9:35 
AnswerRe: TEXT FILE? Pin
David Crow4-Jan-06 9:42
David Crow4-Jan-06 9:42 
GeneralRe: TEXT FILE? Pin
Nish Nishant4-Jan-06 9:51
sitebuilderNish Nishant4-Jan-06 9:51 
GeneralRe: TEXT FILE? Pin
Prakash Nadar4-Jan-06 17:37
Prakash Nadar4-Jan-06 17:37 
AnswerRe: TEXT FILE? Pin
Christian Graus4-Jan-06 10:42
protectorChristian Graus4-Jan-06 10:42 
GeneralRe: TEXT FILE? Pin
Curtis Schlak.4-Jan-06 11:08
Curtis Schlak.4-Jan-06 11:08 
QuestionDetecting if Connected to Network Pin
User 127824-Jan-06 8:35
User 127824-Jan-06 8:35 
QuestionRe: Detecting if Connected to Network Pin
David Crow4-Jan-06 9:44
David Crow4-Jan-06 9:44 

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.