Hi, I'am using the Rs232 Class Library in a vb.net application to print text to a POS printer. in the last week some of our clients have upgraded their system to Windows 7 x64 bits versions and start to fail when they print text via COM to the printer. Can anyone help me regarding this? Is there anything special you have to do with a 64bit enviorment when using the Rs232 library or is it the application itself that needs modification?
+1
A:
There is no difference in the serial port support for x64 Win7. The COM port is however very likely to be either missing or at another port number. Your customer will need to use Device Manager to find the correct port number.
Hans Passant
2010-01-08 18:31:27
There is no problem opening the COMport, i think.. Excepetion "Write Command Error." is thrown.
Alexander
2010-01-09 10:25:36
Write Command Error doesn't mean anything. You are going to have to improve your error handling. What is the value of LastWin32Error()? And use the System.IO.Ports.SerialPort class.
Hans Passant
2010-01-09 10:32:58
Thanks Nobugz, so you say i should rather use the System.IO.Ports.SerialPort instead of CRs232.vb?
Alexander
2010-01-09 10:47:29
Yeah, always prefer a standard .NET class over a custom wrapper. For one, it is much more likely to give you a good exception that tells you what is really wrong if there's a problem.
Hans Passant
2010-01-09 12:31:14
Cheers man, I will give that a try!thankyou so much for your time. i will let you know how it goes
Alexander
2010-01-09 15:16:12
Hello again!, i have tested with the System.IO.Ports.SerialPort instead of CRs232 on a 64bit computer but get the following result."The given port name does not startwith COM/com or does not resolve to a valid serial port"i have checked and doublechecked in the Device Manager i even set the .PortName to to is SerialPort.GetPortNames(0)same code works just FINE on my station.
Alexander
2010-01-10 14:36:40
I dunno, sounds like my original post was accurate. Is this some kind of USB device? Try another one.
Hans Passant
2010-01-10 15:14:53
Hey Nobugz! there was some sort of ghostprinter installed on the COMport. i restarted the computers and they all now work just fine!!i just want to say it it all worked by swapping out the CRs232.vb to System.IO.Ports.SerialPort made it 64bit compatible.thankyou once again Nobugz (:
Alexander
2010-01-11 09:01:17