Converting VB 2003 to VB 2005

  • Thread starter Thread starter cmdolcet69
  • Start date Start date
C

cmdolcet69

I have seen some code in VB 2005 that will write a function to a
device:

me.serialPort1.writeline("[VER]")


How can i call this in VB 2003

my code is below:

Private comm1 As MSComm

comm1.Output = ("[VER]")

When i compile this i get an error. The VB 2005 Code works how can i
get my VB 2003 code to work?
 
Yes, the serial port BCL is avbl only from .NET 2.0.

You will have to use the Mscomm way to do it in 1.1.

This tutorial may be of help:http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=320

--
Rgds,
Anand
VB.NET MVPhttp://www.dotnetindia.com



cmdolcet69 said:
I have seen some code in VB 2005 that will write a function to a
device:
me.serialPort1.writeline("[VER]")

How can i call this in VB 2003
my code is below:
Private comm1 As MSComm
comm1.Output = ("[VER]")
When i compile this i get an error. The VB 2005 Code works how can i
get my VB 2003 code to work?- Hide quoted text -

- Show quoted text -

How could i write that [VER] in VB 2003?
 
Hi,

You can download DesktopSerialIO.dll from my homepage. This .NET dll is
free, and it is simple to use. The download includes an example.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
 
Back
Top