6.0에선 char 타입이 디폴트고, xe5에선 wchar_t 타입이 디폴트 입니다
coms 타입을 wchar_t 타입으로 하세요
해결사 님이 쓰신 글 :
: borand c++ 6.0 에서는 아래 와 같이 초기화 하면 되었는데
: xe5 에서는 안되네요..
: -------------------------------------------------------------------------------------
: hCom[comport - 1] = CreateFile(coms[comport-1],
: GENERIC_READ | GENERIC_WRITE,
: 0, // can't be shared
: NULL, // no security attrs
: OPEN_EXISTING, // comm devices must use OPEN_EXISTING
: 0,
: NULL // hTemplate must be NULL for comm devices
: );
: ------------------------------------------------------------------------------------
: 고수님들의 도움을 요청드립니다.
|