Click to See Complete Forum and Search --> : using serial comm with OpenGL using setimer


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

Sam Hobbs
December 12th, 2003, 02:18 PM
This question is a Windows SDK question and you have already created timer in Win32 API (http://www.codeguru.com/forum/showthread.php?s=&threadid=275759) in the C++ and WinAPI forum to ask. You should not have created this thread.

Gabriel Fleseriu
December 12th, 2003, 04:53 PM
Originally posted by Sam Hobbs
This question is a Windows SDK question and you have already created timer in Win32 API (http://www.codeguru.com/forum/showthread.php?s=&threadid=275759) in the C++ and WinAPI forum to ask. You should not have created this thread.

Right. Please do not start more than one thread for one question. Thread is closed.