Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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
 

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top