Board index » Visual Studio » BUG in VC++6.0???: Multi-Port Serial Communications Card Problem
|
HowardBrody
|
BUG in VC++6.0???: Multi-Port Serial Communications Card Problem
Visual Studio285
I have an 8 port serial communications card in a WindowsNT system installed as COM3, COM4, ... COM10. I can use any of the eight ports using the WindowsNT hyperterminal utility I am using Visual C++ 6.0 with MFC and attempting to open different ports with the following statement m_commhandle = CreateFile((LPCTSTR)m_port, GENERIC_READ|GENERIC_WRITE,0, NULL, OPEN_EXISTING, 0,NULL) This statement works for all of the ports EXCEPT COM10. GetLastError() returns a 2 (ERROR_FILE_NOT_FOUND). In DEBUG, m_port contains "COM10", but the CreateFile(...) still fails. Hyperterminal is not running when I a making these tests, but when I am not debugging my code, and hyperterminal is loaded, it has no problem opening and communicating over COM10, too Is this a BUG in VC++C6.0 - |
