CE .NET SERIAL COM

  • Thread starter Thread starter Pascal SALVAN
  • Start date Start date
P

Pascal SALVAN

Hi,

I'm running on the Windows CE .NET 4.10 (Build 908). I try to develop a serial communication application with Visual
studio .NET "WindowsCe SmartApplication".

I use the "Michael Wittenburg" class : http://www.opennetcf.org/Forums/topic.asp?TOPIC_ID=212


The class work fine with default parameters but when I try to set the "DataBits" to "7", the SetCommState function failed.
No error, no exception...I don't understand the problem ?

The serail conf. wich failed is :

moRS232.BaudRate = 9600
moRS232.DataBits = 7
moRS232.Parity = "E"
moRS232.StopBits = 1

Haver you ever heard this story before ?
Is there a bug in "coredll" ?
Where is the problem ?

Thanks for your answers ...
 
Thank you for sharing it with us!

Alberto Silva

"Pascal SALVAN" <pascal@[email protected]@realix.fr> escreveu na mensagem
I've found the problem, there is an error in const values :

....
Private Const STOPBITS_10 As Byte = &H1
Private Const STOPBITS_15 As Byte = &H2
 
Back
Top