|
-
July 13th, 1999, 02:10 PM
#1
loop control
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|