Click here to Skip to main content
15,912,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to pass command line parameters using CreateProcess function. Pin
SNI28-Nov-08 2:08
SNI28-Nov-08 2:08 
AnswerRe: How to pass command line parameters using CreateProcess function. Pin
CPallini28-Nov-08 2:39
mveCPallini28-Nov-08 2:39 
AnswerRe: How to pass command line parameters using CreateProcess function. Pin
Mark Salsbery28-Nov-08 11:52
Mark Salsbery28-Nov-08 11:52 
GeneralRe: How to pass command line parameters using CreateProcess function. Pin
SNI5-Dec-08 1:49
SNI5-Dec-08 1:49 
Question[Message Deleted] Pin
Member 462021628-Nov-08 1:59
Member 462021628-Nov-08 1:59 
AnswerRe: Communication with device Pin
Roger Stoltz28-Nov-08 2:09
Roger Stoltz28-Nov-08 2:09 
QuestionI want to run Thread at regular interval using multimedia timer [modified] Pin
anilaabc27-Nov-08 23:07
anilaabc27-Nov-08 23:07 
QuestionRe: I want to run Thread at regular interval using multimedia timer Pin
Roger Stoltz28-Nov-08 2:06
Roger Stoltz28-Nov-08 2:06 
Confused | :confused: OMG | :OMG: Confused | :confused:
What on earth are you trying to do?

I mean that question very sincerely because you seem to have misunderstood the concept of multithreading completely.
If you experience the thread to run at least once, you must be calling ::ResumeThread() from some code that you have not provided in this post, which suggests that there may be more to it than the code you've posted.

What the code you provided does is create a thread suspended. When the thread resumes execution it will call the abc() function. In the same call chain ::SuspendThread() will be called and when ::ResumeThread() is called in order to let the thread resume execution, the thread will simply exit. That's why the "thread only runs once".

For the rest of us to be able to help you as constructive as possible, please answer this:
Why do you think you need multiple threads?


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown


Questionhow can i dispaly icon or bitmap on status bar? Pin
puppya27-Nov-08 21:36
puppya27-Nov-08 21:36 
AnswerRe: how can i dispaly icon or bitmap on status bar? Pin
_AnsHUMAN_ 27-Nov-08 21:38
_AnsHUMAN_ 27-Nov-08 21:38 
AnswerRe: how can i dispaly icon or bitmap on status bar? Pin
Hamid_RT27-Nov-08 23:35
Hamid_RT27-Nov-08 23:35 
QuestionHow to enumerates media types on a given pin Pin
zengkun10027-Nov-08 21:17
zengkun10027-Nov-08 21:17 
AnswerRe: How to enumerates media types on a given pin Pin
Iain Clarke, Warrior Programmer28-Nov-08 9:15
Iain Clarke, Warrior Programmer28-Nov-08 9:15 
GeneralRe: How to enumerates media types on a given pin Pin
zengkun10029-Nov-08 2:01
zengkun10029-Nov-08 2:01 
QuestionEffective Synchronization: Multiple Read, Single Write Pin
singh_nav27-Nov-08 20:20
singh_nav27-Nov-08 20:20 
AnswerRe: Effective Synchronization: Multiple Read, Single Write Pin
_AnsHUMAN_ 27-Nov-08 20:27
_AnsHUMAN_ 27-Nov-08 20:27 
GeneralRe: Effective Synchronization: Multiple Read, Single Write Pin
singh_nav27-Nov-08 21:27
singh_nav27-Nov-08 21:27 
GeneralRe: Effective Synchronization: Multiple Read, Single Write Pin
_AnsHUMAN_ 27-Nov-08 21:35
_AnsHUMAN_ 27-Nov-08 21:35 
AnswerRe: Effective Synchronization: Multiple Read, Single Write Pin
Cedric Moonen27-Nov-08 20:32
Cedric Moonen27-Nov-08 20:32 
AnswerRe: Effective Synchronization: Multiple Read, Single Write Pin
Mark Salsbery28-Nov-08 12:03
Mark Salsbery28-Nov-08 12:03 
QuestionHow do I create a pop_up interface Pin
sunjianbo27-Nov-08 20:01
sunjianbo27-Nov-08 20:01 
AnswerRe: How do I create a pop_up interface Pin
Cedric Moonen27-Nov-08 20:09
Cedric Moonen27-Nov-08 20:09 
AnswerRe: How do I create a pop_up interface Pin
_AnsHUMAN_ 27-Nov-08 20:12
_AnsHUMAN_ 27-Nov-08 20:12 
AnswerRe: How do I create a pop_up interface Pin
Hamid_RT27-Nov-08 23:36
Hamid_RT27-Nov-08 23:36 
QuestionConfusion with DriveMapping Pin
john563227-Nov-08 19:57
john563227-Nov-08 19:57 

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.