Programming serial port with visual studio 2005

Status
Not open for further replies.

eelinker

Full Member level 5
Joined
Feb 12, 2006
Messages
267
Helped
16
Reputation
32
Reaction score
8
Trophy points
1,298
Location
PERSIA
Activity points
2,775
Do you have any experience in writing programs for smart devices with ms vs.net 2005 that work with serial port?

I get exception in serialport.write() method
 

Firstly you need to post more details if you want help...

Secondly, use Google.... there is a ton of stuff out there.

Good luck
 

I used serial port activex inside vs.net IDE
and wrote this code:
SerialPort1.BaudRate = 19200
SerialPort1.PortName = "COM7"
SerialPort1.Handshake = IO.Ports.Handshake.None
SerialPort1.DataBits = 8
SerialPort1.Parity = IO.Ports.Parity.None

SerialPort1.Open()
SerialPort1.Write("hello" & vbCrLf)
SerialPort1.Close()
but when code tries to run SerialPort1.Write("hello" & vbCrLf)
it causes an exception in win ce!
 

Check that all required classes and frameworks are there in WinCE.

Use Dependency Walker on your AX to investigate.
 

    eelinker

    Points: 2
    Helpful Answer Positive Rating
I got my answer in this forum!

**broken link removed**

Added after 20 seconds:

I got my answer in this forum
**broken link removed**
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…