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
);
------------------------------------------------------------------------------------
고수님들의 도움을 요청드립니다.
|