kashifsaeed55
December 12th, 2003, 02:10 AM
hello
i am developing an application to read the data from the serial port and then graphically displaying it on an OpenGL window using win32 API but i want to read that that after every 10 or 15 seconds since continious reading is stucking my application due to read com and drawing events simultaneously.
for that i am using timer. i having difficulties in using that .
i used SetTimer( ) win32 API to activate timer but that is not calling WM_TIMER msg in Winmain to activate my function for Readport(). any help
thanks
kahsif
i am developing an application to read the data from the serial port and then graphically displaying it on an OpenGL window using win32 API but i want to read that that after every 10 or 15 seconds since continious reading is stucking my application due to read com and drawing events simultaneously.
for that i am using timer. i having difficulties in using that .
i used SetTimer( ) win32 API to activate timer but that is not calling WM_TIMER msg in Winmain to activate my function for Readport(). any help
thanks
kahsif