vc++ com1 read
vc++ com1 read
hi, i am looking for some help with reading from the com1 port in vc++. This will be used for the keypad input on my LK204-25 lcd module. If anyone can help me with how to run the code as a seperate thread that would be great too. Thanks very much, matt
Hi Matt, have you looked at the links I posted here ->
http://www.lcdforums.com/forums/viewtop ... =9298#9298
Check your MSDN library for complete details about this function.
In the sample code I mentioned in the link above, the new thread is spawned in the file SerialCommHelper.cpp line 160
Try reading the article linked above, and download their sample code. Then step through the code step-by-step and if you still have problems please let me know. I hope this helps.
http://www.lcdforums.com/forums/viewtop ... =9298#9298
To spawn a new thread use function...how to run the code as a separate thread...
Code: Select all
_beginthreadex
In the sample code I mentioned in the link above, the new thread is spawned in the file SerialCommHelper.cpp line 160
Code: Select all
m_hThread = (HANDLE)_beginthreadex(0,0,CSerialCommHelper::ThreadFn,(void*)this,0,0 );
Johnny Patino
Software Developer
Matrix Orbital
Software Developer
Matrix Orbital