KMFD9@VM2.UNI-C.DK (Niels Kristian Jensen) (06/19/91)
This question is forwarded by me (Niels Kristian Jensen), as Ole Andersen haven't got a internet id. Please answer directly to kmfd9@vm2.uni-c.dk (internet) or KMFD9 AT DKUNIC12 (BITNET) as I can't connect to a usenet newsgroup from my BITNET-site. Thanks in advance for any help or suggestions. Niels Kristian Jensen, Radiometer Analytical A/S Krogshojvej 49 DK-2880 Bagsvaerd Denmark --- forwarded message begins --- The Windows SetTimer CallBack function Account: and Real time Windows Apps. ??? -------------------------------------- Init: Ole Andersen Right now i am working on implementing a windows app. that needs to send commands (data packets) onto the network (ARCnet/Ethernet) connected to the PC. The commands are send to instruments connected to the network. The application demands that the commands are send at fixed time (+-200 mSec -> +- 500mSec) to control the instruments properly. My first idea to a solution was a hidden Win app in which the sending of commands is controlled by a function (state machine) that is activated with fixed time intervals (50 msec). This function is defined as a Call Back function by using the Windows SetTimer function. My problem is that this Call Back function is not called by Windows as long as the mouse left button is pressed down on another windows app (ex. Excel ,Write ) caption bar. The Windows app. that i have implemented for testing this problem uses only one window which is hidden (window state = WS_HIDE) so the user can not select the application. The Call Back function in this test application transmits ASCII characters (10 chars) on the COM1 port. The application dont use file access or DDE or any actions that can cause a WM_PAINT message to the apps. message loop. Windows is operating in Enhanced 386 mode. But still, the character transmission stops as soon as the mouse left button is pressed down on another Windows app. caption bar. If you have any suggestions to a solution on the problem or perhaps a totally different concept, then i will be pleased if you write to me. Kind regards Ole Andersen --- forwarded message ends ---