5/16/2016

Serial communication(RS232C) source code (for wince and window)

The serial communication code is different for winCE and window.

In particular, Windows ce is attaching colon like 'com1:' an attempt to connect.

This attached code is very useful to start.

But comment is korean.

https://github.com/MareArts/ComThread

There are two folders. one is for wince, second is for window.

This source can be directly applied to the project.

Thank you.



5/11/2016

CString to char*

//CString -> char *
CString str;
str = "hello";
char * chr = LPSTR(LPCTSTR(str));

//char * -> CString
char chr[] = "hello";
CString str;
str.Format("%s", ss);