Com-Nr > 9
-
Hallo zusammen,
habe gerade bemerkt, dass wenn meien Com-Nr grösser als 9 ist, kann ich es nicht mit der CreateFile(..) öffnen, was ist da falsch an dem String COMXX? (XX>=10)
Danke
-
Aus dem MSDN:
If the name of the port is \.\COM10, the correct way to specify the serial port in a call to CreateFile() is as follows:
CreateFile( "\\\\.\\COM10", // address of name of the communications device fdwAccess, // access (read-write) mode 0, // share mode NULL, // address of security descriptor OPEN_EXISTING, // how to create 0, // file attributes NULL // handle of file with attributes to copy );