Click here to Skip to main content
15,904,926 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSetups for networks Pin
BoudewijnEctor3-Jul-03 23:36
BoudewijnEctor3-Jul-03 23:36 
General"while (==)" Pin
FlyingDancer3-Jul-03 23:33
FlyingDancer3-Jul-03 23:33 
GeneralRe: "while (==)" Pin
Ryan_Roberts3-Jul-03 23:41
Ryan_Roberts3-Jul-03 23:41 
GeneralRe: "while (==)" Pin
Ryan Binns4-Jul-03 0:38
Ryan Binns4-Jul-03 0:38 
GeneralRe: "while (==)" Pin
FlyingDancer4-Jul-03 1:27
FlyingDancer4-Jul-03 1:27 
GeneralRe: "while (==)" Pin
Ryan Binns4-Jul-03 1:34
Ryan Binns4-Jul-03 1:34 
GeneralRe: "while (==)" Pin
FlyingDancer4-Jul-03 2:05
FlyingDancer4-Jul-03 2:05 
GeneralRe: "while (==)" Pin
Ryan Binns4-Jul-03 2:14
Ryan Binns4-Jul-03 2:14 
Aleon666 wrote:
But my entire programme was stopped.

What did the WaitForSingleObject() function return? Did it return WAIT_TIMEOUT? You might want to change it from != WAIT_OBJECT_0 to == WAIT_TIMEOUT.

Aleon666 wrote:
what kind of parameter can be used as the first one?

Look at the docs for WaitForSingleObject(). There are quite a few types that can be used. I assume hFunThread is the handle to your thread. The function will return WAIT_SIGNAL_0 when the thread completes, and WAIT_TIMEOUT otherwise, unless there is an error, where WAIT_FAILED will be called.

Ryan

Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)

Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"

GeneralRe: "while (==)" Pin
FlyingDancer4-Jul-03 3:06
FlyingDancer4-Jul-03 3:06 
GeneralRe: "while (==)" Pin
Ryan Binns4-Jul-03 3:10
Ryan Binns4-Jul-03 3:10 
GeneralRe: "while (==)" Pin
FlyingDancer4-Jul-03 3:51
FlyingDancer4-Jul-03 3:51 
GeneralRe: "while (==)" Pin
FlyingDancer6-Jul-03 15:58
FlyingDancer6-Jul-03 15:58 
GeneralRe: "while (==)" Pin
Ryan Binns6-Jul-03 17:18
Ryan Binns6-Jul-03 17:18 
GeneralCDateTimeCtrl,CTime Pin
Kamesh3-Jul-03 23:31
Kamesh3-Jul-03 23:31 
GeneralRe: CDateTimeCtrl,CTime Pin
Ryan Binns4-Jul-03 0:45
Ryan Binns4-Jul-03 0:45 
GeneralRe: CDateTimeCtrl,CTime Pin
Rage4-Jul-03 0:53
professionalRage4-Jul-03 0:53 
GeneralRe: CDateTimeCtrl,CTime Pin
Ryan Binns4-Jul-03 0:58
Ryan Binns4-Jul-03 0:58 
GeneralRe: CDateTimeCtrl,CTime Pin
Rage4-Jul-03 0:49
professionalRage4-Jul-03 0:49 
GeneralCAD plotting Pin
eddymohd3-Jul-03 23:06
eddymohd3-Jul-03 23:06 
QuestionBold text in Listcontrol? Pin
whofmans3-Jul-03 22:37
whofmans3-Jul-03 22:37 
AnswerRe: Bold text in Listcontrol? Pin
Rage4-Jul-03 0:38
professionalRage4-Jul-03 0:38 
AnswerRe: Bold text in Listcontrol? Pin
Ryan Binns4-Jul-03 0:47
Ryan Binns4-Jul-03 0:47 
AnswerThanks for your help! Bold looks good. Pin
whofmans4-Jul-03 5:20
whofmans4-Jul-03 5:20 
GeneralGet file name from file handel Pin
Naveen_mah3-Jul-03 22:07
Naveen_mah3-Jul-03 22:07 
GeneralRe: Get file name from file handel Pin
Magnus Westin3-Jul-03 22:54
Magnus Westin3-Jul-03 22:54 

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.