matthiasm wrote:
>> res = o-> open("COM1", 19200);
> Likely, you just opened a regular file calle "COM1".
Under windows "COM1" (and "COM1:") are should still be valid
names for the serial port.. Microsoft keeping things backwards
compatible to ye olde and crusty DOS days. So too are NUL, PRN, etc.
So unless the //./com1 stuff does something different, it
probably doesn't matter.
> MS-Windows serial ports is should be "\\.\COM1", and if you use this
> in a "C" -String, you must of course double all the backslashes, so
> the open command should call "\\\\.\\COM1".
I think frontslashes will work too, eg "//./COM1",
in which case you can avoid the double backslash stuff.
Just verified all the above on my vista machine,
so all the old DOS stuff seems to still be in there.
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev