Click here to Skip to main content
15,892,199 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionChanging a System Tray Icon Menu? Pin
-273C18-Feb-06 23:49
-273C18-Feb-06 23:49 
AnswerRe: Changing a System Tray Icon Menu? Pin
Gary R. Wheeler19-Feb-06 4:05
Gary R. Wheeler19-Feb-06 4:05 
GeneralRe: Changing a System Tray Icon Menu? Pin
-273C19-Feb-06 5:12
-273C19-Feb-06 5:12 
GeneralRe: Changing a System Tray Icon Menu? Pin
Gary R. Wheeler19-Feb-06 5:50
Gary R. Wheeler19-Feb-06 5:50 
GeneralRe: Changing a System Tray Icon Menu? Pin
-273C19-Feb-06 12:16
-273C19-Feb-06 12:16 
GeneralRe: Changing a System Tray Icon Menu? Pin
Owner drawn19-Feb-06 18:23
Owner drawn19-Feb-06 18:23 
Questionhow to explore file? Pin
nm_11418-Feb-06 21:13
nm_11418-Feb-06 21:13 
AnswerRe: how to explore file? Pin
David Crow19-Feb-06 9:59
David Crow19-Feb-06 9:59 
Questionocx replace1 Pin
mahmoodi18-Feb-06 20:35
mahmoodi18-Feb-06 20:35 
Questionocx replace Pin
mahmoodi18-Feb-06 20:34
mahmoodi18-Feb-06 20:34 
QuestionQuestion Pin
Hamid_RT18-Feb-06 20:28
Hamid_RT18-Feb-06 20:28 
AnswerRe: Question Pin
mbue18-Feb-06 20:56
mbue18-Feb-06 20:56 
AnswerRe: Question Pin
Divyang Mithaiwala18-Feb-06 21:19
Divyang Mithaiwala18-Feb-06 21:19 
Questionfind pixel colour on screen Pin
OnTilt18-Feb-06 18:51
OnTilt18-Feb-06 18:51 
AnswerRe: find pixel colour on screen Pin
Divyang Mithaiwala18-Feb-06 20:57
Divyang Mithaiwala18-Feb-06 20:57 
GeneralRe: find pixel colour on screen Pin
Gavin Taylor19-Feb-06 2:17
professionalGavin Taylor19-Feb-06 2:17 
GeneralRe: find pixel colour on screen Pin
Divyang Mithaiwala19-Feb-06 17:26
Divyang Mithaiwala19-Feb-06 17:26 
AnswerRe: find pixel colour on screen Pin
Gavin Taylor19-Feb-06 2:19
professionalGavin Taylor19-Feb-06 2:19 
AnswerRe: find pixel colour on screen Pin
OnTilt19-Feb-06 9:47
OnTilt19-Feb-06 9:47 
AnswerRe: find pixel colour on screen Pin
Owner drawn19-Feb-06 18:15
Owner drawn19-Feb-06 18:15 
QuestionTrapping Interrupts in Windows Pin
Rane18-Feb-06 17:40
Rane18-Feb-06 17:40 
AnswerRe: Trapping Interrupts in Windows Pin
Gary R. Wheeler19-Feb-06 4:11
Gary R. Wheeler19-Feb-06 4:11 
GeneralRe: Trapping Interrupts in Windows Pin
Rane19-Feb-06 18:50
Rane19-Feb-06 18:50 
QuestionSimple Win32 Console App question... Pin
jc0dex18-Feb-06 15:36
jc0dex18-Feb-06 15:36 
Hey Guys ..

I'm running a Win32 Console UDP Server/Client application. I want to run my server update function inside my main loop while also checking for key input. All I need to check for is if a single key has been pressed.

The kicker is I need a way to continue on with the update without pausing for user input. When the user hits 't' for toggle it calls a function that closes the socket and reopens it as a server or client.

Here's what I have now, but as I said I need something that doesn't wait for user input.

Update()
{
char toggle;

toggle = cin.get()

if(toggle == 't')
{
ToggleMode();
}

// get all the packets we can
while(ReceiveData());

// Send all the data to the clients
SendData();

return true;
}

Thanks in advance!

AnswerRe: Simple Win32 Console App question... Pin
PJ Arends18-Feb-06 16:58
professionalPJ Arends18-Feb-06 16:58 

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.