Click here to Skip to main content
15,910,878 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow many Desktop can i create with CreateDesktop Pin
Thomas Mathew24-Jun-03 1:53
Thomas Mathew24-Jun-03 1:53 
Generalprinter event Pin
acatalfo24-Jun-03 1:47
acatalfo24-Jun-03 1:47 
GeneralRe: printer event Pin
Duncan Edwards Jones24-Jun-03 2:07
professionalDuncan Edwards Jones24-Jun-03 2:07 
GeneralActiveX - Error 450 in Visual Basic Pin
Ishwari24-Jun-03 1:47
Ishwari24-Jun-03 1:47 
QuestionConsole app - how to "keep alive" ? Pin
MrBean24-Jun-03 0:54
MrBean24-Jun-03 0:54 
AnswerRe: Console app - how to "keep alive" ? Pin
Rage24-Jun-03 1:13
professionalRage24-Jun-03 1:13 
GeneralRe: Console app - how to "keep alive" ? Pin
MrBean24-Jun-03 1:22
MrBean24-Jun-03 1:22 
GeneralRe: Console app - how to "keep alive" ? Pin
Peter Weyzen24-Jun-03 10:52
Peter Weyzen24-Jun-03 10:52 
Do the sleep() call. I have console-app based servers -- we do the same thing of a kbhit/getch loop to look for the shutdown keystroke.

With a sleep(100) this thread bears no impact on the process.... Thread priority is not a good way to do this, since the crux of the problem is that your thread is always awake and always processing.

Threads should not be wasting process time when they don't need to.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
Santa Cruz Networks

GeneralRe: Console app - how to &quot;keep alive&quot; ? Pin
MrBean24-Jun-03 22:59
MrBean24-Jun-03 22:59 
AnswerRe: Console app - how to &quot;keep alive&quot; ? Pin
Michael P Butler24-Jun-03 3:50
Michael P Butler24-Jun-03 3:50 
GeneralRe: Console app - how to &quot;keep alive&quot; ? Pin
MrBean24-Jun-03 3:55
MrBean24-Jun-03 3:55 
GeneralRe: Console app - how to &quot;keep alive&quot; ? Pin
nfactorial24-Jun-03 5:36
nfactorial24-Jun-03 5:36 
GeneralRe: Console app - how to &quot;keep alive&quot; ? Pin
MrBean24-Jun-03 22:56
MrBean24-Jun-03 22:56 
AnswerRe: Console app - how to &quot;keep alive&quot; ? Pin
David Crow24-Jun-03 3:58
David Crow24-Jun-03 3:58 
GeneralRe: Console app - how to &quot;keep alive&quot; ? Pin
MrBean24-Jun-03 22:57
MrBean24-Jun-03 22:57 
AnswerRe: Console app - how to &quot;keep alive&quot; ? Pin
peterchen24-Jun-03 9:35
peterchen24-Jun-03 9:35 
GeneralRe: Console app - how to &quot;keep alive&quot; ? Pin
MrBean24-Jun-03 22:56
MrBean24-Jun-03 22:56 
GeneralISO-8601 Date Format and COleDateTime Pin
Braulio Dez24-Jun-03 0:40
Braulio Dez24-Jun-03 0:40 
GeneralRe: ISO-8601 Date Format and COleDateTime Pin
Rage24-Jun-03 1:09
professionalRage24-Jun-03 1:09 
GeneralC# DLL and MFC app Pin
vikramlinux24-Jun-03 0:30
vikramlinux24-Jun-03 0:30 
GeneralRe: C# DLL and MFC app Pin
Kannan Kalyanaraman24-Jun-03 1:13
Kannan Kalyanaraman24-Jun-03 1:13 
GeneralRe: C# DLL and MFC app Pin
vikramlinux24-Jun-03 1:31
vikramlinux24-Jun-03 1:31 
GeneralRe: C# DLL and MFC app Pin
Kannan Kalyanaraman24-Jun-03 1:52
Kannan Kalyanaraman24-Jun-03 1:52 
GeneralRe: C# DLL and MFC app Pin
vikramlinux24-Jun-03 1:56
vikramlinux24-Jun-03 1:56 
GeneralRe: C# DLL and MFC app Pin
Kannan Kalyanaraman24-Jun-03 2:07
Kannan Kalyanaraman24-Jun-03 2:07 

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.