I have a RS232 to USB convertor, drivers are installed. I already have a GUI program to change my chops configuration and it works fine.
My question is, I wrote a code in VS2008 in C++ to find all the COM ports using:
SerialPort::GetPortNames()
My problem is that it doesn't return anything. No COM ports at all. When I check the device on device manager, it gives me 3 COM ports for the device. Cnca1 and Cncab1 on ports 10 and 36 respectively and both of them are emulator ports and a USB port on COM3, if I run the GUI program, it says that the device is in COM3.
问题恰好是管理员对注册表的访问。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.