C
The .NET framework is supposed to offer a namespace for stream and I/O handling, but I didn't find any documentation on serial port programming with the new namespace.
I even wrote to Mr Troelsen that wrote one of the best C# books around, but he's equally clueless.
Basically you should be able to use the System.IO namespace like you do when you handle a disk file (like the old CreateFile() in the platform SDK).
There's even an example on Microsoft website: it seems like you're supposed to open a file from the System.IO and pass the name "COM1" (for example) instead of a filepath.
It doesn't work nor returns a Filestream as it should. But no explanation, sysnopsis, detail has been found anywhere.
I would like to try to avoid a call to the good old kernel32.dll or a sad use of the mscomm32.ocx.
Any suggestion will be greatly appreciated.
Regards
Costantino
I even wrote to Mr Troelsen that wrote one of the best C# books around, but he's equally clueless.
Basically you should be able to use the System.IO namespace like you do when you handle a disk file (like the old CreateFile() in the platform SDK).
There's even an example on Microsoft website: it seems like you're supposed to open a file from the System.IO and pass the name "COM1" (for example) instead of a filepath.
It doesn't work nor returns a Filestream as it should. But no explanation, sysnopsis, detail has been found anywhere.
I would like to try to avoid a call to the good old kernel32.dll or a sad use of the mscomm32.ocx.
Any suggestion will be greatly appreciated.
Regards
Costantino