July 13th, 1999, 02:10 PM
Hello,
I am using MFC and right now I am trying to write a loop to capture images from A/D boards continously using _outp(). I used WHILE(!_kbhit()) to constructure the loop.The loop is supposed to be interupted by hitting any key. However, it did not work. I also tried WHILE(GetMessage(msg,NULL,0,0)). It is supposed to be interupted when I close window or select Exit from the menu. However, the loop was working,but could not be interupted because the window was frozen. Do you know what the problem might be. Do you have good ways to do this job. Could you kindly give me some samples or reference about response to keyboard.Any help is greatly appreciated.
Sincerely yours,
Jiasheng
I am using MFC and right now I am trying to write a loop to capture images from A/D boards continously using _outp(). I used WHILE(!_kbhit()) to constructure the loop.The loop is supposed to be interupted by hitting any key. However, it did not work. I also tried WHILE(GetMessage(msg,NULL,0,0)). It is supposed to be interupted when I close window or select Exit from the menu. However, the loop was working,but could not be interupted because the window was frozen. Do you know what the problem might be. Do you have good ways to do this job. Could you kindly give me some samples or reference about response to keyboard.Any help is greatly appreciated.
Sincerely yours,
Jiasheng