Click here to Skip to main content
15,899,474 members
Home / Discussions / Article Writing
   

Article Writing

 
GeneralRe: i want the source code to the following riddle urgent please! Pin
DavidNohejl18-Dec-04 23:26
DavidNohejl18-Dec-04 23:26 
GeneralCode Generator Pin
GerhardKreuzer18-Dec-04 12:20
GerhardKreuzer18-Dec-04 12:20 
Generalfolder password Pin
AuroraX10-Dec-04 3:02
AuroraX10-Dec-04 3:02 
GeneralRe: folder password Pin
Anonymous19-Dec-04 19:22
Anonymous19-Dec-04 19:22 
GeneralRe: folder password Pin
zybernau28-Dec-04 4:41
zybernau28-Dec-04 4:41 
GeneralLDAp & VB.NET Pin
Dharmesh Gandhi2-Dec-04 8:54
sussDharmesh Gandhi2-Dec-04 8:54 
QuestionHow to check if a thread waits for data at the read-end of a pipe? Pin
leifel25-Nov-04 0:56
leifel25-Nov-04 0:56 
AnswerRe: How to check if a thread waits for data at the read-end of a pipe? Pin
Blake Miller2-Dec-04 5:05
Blake Miller2-Dec-04 5:05 
Hello Leif;

Years of programming multi-threaded code have made me very sensitive to two particular values for timeouts in the WaitFor... functions. Those two values are 0 and INIFNITE.

I noticed that you used 0 in two of your test cases, and this is what MSDN says about 0:
If dwMilliseconds is zero, the function tests the object's state and returns immediately.
Now, I am not sure WHAT to expect if you are only testing for the object's state as opposed to, for example, putting in even a 1 millisecond wait and then looking for WAIT_TIMEOUT.

Typically, even if I want an 'immediate' timeout on a wait, I usually make it about 20 to 50 milliseconds for anything remotely related to USER interaction. If I get timeout, I assume nothing has happend or is really waiting and proceed with the processing.

I have never written code that uses either 0 or INIFNITE and I process the WAIT_TIMEOUT and WAIT_FAILED all the time. The code seems to work fine that way.
GeneralRe: How to check if a thread waits for data at the read-end of a pipe? Pin
leifel2-Dec-04 21:34
leifel2-Dec-04 21:34 
GeneralTelnet Login's Pin
Flame Gitsnik23-Nov-04 10:13
Flame Gitsnik23-Nov-04 10:13 
Generalflash templates Pin
Anonymous22-Nov-04 19:42
Anonymous22-Nov-04 19:42 
GeneralInterest in C++ Library Alternative to STL Pin
Christopher Diggins21-Nov-04 4:27
professionalChristopher Diggins21-Nov-04 4:27 
GeneralRe: Interest in C++ Library Alternative to STL Pin
Joaquín M López Muñoz21-Nov-04 5:53
Joaquín M López Muñoz21-Nov-04 5:53 
GeneralRe: Interest in C++ Library Alternative to STL Pin
Christopher Diggins21-Nov-04 7:07
professionalChristopher Diggins21-Nov-04 7:07 
GeneralRe: Interest in C++ Library Alternative to STL Pin
Vivi Chellappa30-Nov-04 15:11
professionalVivi Chellappa30-Nov-04 15:11 
GeneralRe: Interest in C++ Library Alternative to STL Pin
Christopher Diggins25-Nov-04 18:52
professionalChristopher Diggins25-Nov-04 18:52 
GeneralNewbie - Html, swf & Yahoo Pin
Tweetiengram14-Nov-04 7:53
Tweetiengram14-Nov-04 7:53 
GeneralImport data to msde from SQL 2000 Pin
nitin_ion9-Nov-04 23:56
nitin_ion9-Nov-04 23:56 
GeneralRe: Import data to msde from SQL 2000 Pin
CodeWell17-Nov-04 20:32
CodeWell17-Nov-04 20:32 
GeneralRe: Import data to msde from SQL 2000 Pin
Steve S17-Nov-04 22:18
Steve S17-Nov-04 22:18 
GeneralRe: Import data to msde from SQL 2000 Pin
Anonymous18-Nov-04 0:57
Anonymous18-Nov-04 0:57 
GeneralRe: Import data to msde from SQL 2000 Pin
nitin_ion18-Nov-04 1:03
nitin_ion18-Nov-04 1:03 
GeneralRe: Import data to msde from SQL 2000 Pin
Steve S18-Nov-04 23:55
Steve S18-Nov-04 23:55 
GeneralRe: Import data to msde from SQL 2000 Pin
nitin_ion19-Nov-04 0:01
nitin_ion19-Nov-04 0:01 
GeneralFile Shredding Pin
_kane_8-Nov-04 2:06
_kane_8-Nov-04 2:06 

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.