Here's the situation... A Modeless Dialog Box(MDB) is open... and a function is running... At a point I want the function to call a method of the MDB and wait right there for the user to push a button in the MDB. When he does, the function will continue...
Does something like this could work?
void Function(){
// code
MDB.CallMethod();
CSingleLock sl(&mutex);
sl.Lock(); // wait for the button to be push
// code
}
OnClick..(){
CSingleLock sl(&mutex);
sl.Unlock(); // function will continue}
samples please.... thanks!
Does something like this could work?
void Function(){
// code
MDB.CallMethod();
CSingleLock sl(&mutex);
sl.Lock(); // wait for the button to be push
// code
}
OnClick..(){
CSingleLock sl(&mutex);
sl.Unlock(); // function will continue}
samples please.... thanks!