Click here to Skip to main content
15,911,848 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHelp with a waveIn, waveOut program Pin
Commickey27-Dec-06 11:38
Commickey27-Dec-06 11:38 
AnswerRe: Help with a waveIn, waveOut program Pin
Mark Salsbery27-Dec-06 12:10
Mark Salsbery27-Dec-06 12:10 
GeneralRe: Help with a waveIn, waveOut program Pin
Commickey27-Dec-06 13:07
Commickey27-Dec-06 13:07 
AnswerRe: Help with a waveIn, waveOut program Pin
Hamid_RT27-Dec-06 18:09
Hamid_RT27-Dec-06 18:09 
QuestionHow to pause processing? Pin
Dustin Henry27-Dec-06 10:20
Dustin Henry27-Dec-06 10:20 
AnswerRe: How to pause processing? Pin
Johan Pretorius27-Dec-06 11:18
Johan Pretorius27-Dec-06 11:18 
GeneralRe: How to pause processing? Pin
Dustin Henry27-Dec-06 11:51
Dustin Henry27-Dec-06 11:51 
GeneralRe: How to pause processing? Pin
Johan Pretorius27-Dec-06 12:07
Johan Pretorius27-Dec-06 12:07 
Something i forgot when you posted was that you wanted to pause the processing not lower it.

try this if it does not work try send me an demo so i can test.
//add global variable to main.cpp
static bool g_bRunning = true;

//Modify case statement
case WM_ACTIVATE:
{
   //See if we lost or gained focus
   if (LOWORD(wParam) == WA_ACTIVE)
   {
     g_bRunning = true;
   }
   else
   {
     g_bRunning = false;
   }
}
break;

//add to main loop
while (!g_bRunning){/*leave empty*/};//this should pause it.

//just add an mutex and !!





Artificial Intelligence is no match for Natural Stupidity

No one can understand the truth until he drinks of coffee's frothy goodness. ~Sheik Abd-al-Kadir

I can't always be wrong ... or can I?


GeneralRe: How to pause processing? Pin
Dustin Henry27-Dec-06 12:38
Dustin Henry27-Dec-06 12:38 
GeneralRe: How to pause processing? Pin
Johan Pretorius27-Dec-06 12:42
Johan Pretorius27-Dec-06 12:42 
QuestionRe: How to pause processing? Pin
Mark Salsbery27-Dec-06 12:13
Mark Salsbery27-Dec-06 12:13 
AnswerRe: How to pause processing? Pin
Dustin Henry27-Dec-06 12:36
Dustin Henry27-Dec-06 12:36 
GeneralRe: How to pause processing? Pin
Mark Salsbery27-Dec-06 12:52
Mark Salsbery27-Dec-06 12:52 
AnswerRe: How to pause processing? Pin
Johan Pretorius27-Dec-06 12:40
Johan Pretorius27-Dec-06 12:40 
GeneralRe: How to pause processing? Pin
Johan Pretorius27-Dec-06 12:43
Johan Pretorius27-Dec-06 12:43 
GeneralRe: How to pause processing? Pin
Dustin Henry27-Dec-06 12:51
Dustin Henry27-Dec-06 12:51 
GeneralRe: How to pause processing? Pin
Mark Salsbery27-Dec-06 12:56
Mark Salsbery27-Dec-06 12:56 
GeneralRe: How to pause processing? Pin
Johan Pretorius27-Dec-06 12:57
Johan Pretorius27-Dec-06 12:57 
AnswerRe: How to pause processing? Pin
Mark Salsbery27-Dec-06 13:01
Mark Salsbery27-Dec-06 13:01 
GeneralRe: How to pause processing? Pin
Johan Pretorius27-Dec-06 13:16
Johan Pretorius27-Dec-06 13:16 
GeneralRe: How to pause processing? Pin
Mark Salsbery27-Dec-06 13:22
Mark Salsbery27-Dec-06 13:22 
QuestionON_UPDATE_COMMAND_UI never get called Pin
chiheb zak27-Dec-06 8:53
chiheb zak27-Dec-06 8:53 
AnswerRe: ON_UPDATE_COMMAND_UI never get called Pin
Naveen27-Dec-06 16:27
Naveen27-Dec-06 16:27 
GeneralRe: ON_UPDATE_COMMAND_UI never get called Pin
chiheb zak28-Dec-06 5:27
chiheb zak28-Dec-06 5:27 
GeneralRe: ON_UPDATE_COMMAND_UI never get called Pin
Naveen28-Dec-06 16:38
Naveen28-Dec-06 16:38 

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.