Converting VB 2003 to VB 2005


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?
 
Ad

Advertisements

C

cmdolcet69

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?
 
D

Dick Grier

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.
 
Ad

Advertisements

H

Herfried K. Wagner [MVP]

cmdolcet69 said:
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?

You receive an error message "You do not have a license to use this control"
when you use Visual Basic 6.0 controls in Visual Studio 2005 or in Visual
Studio .NET
<URL:http://support.microsoft.com/?scid=kb;EN-US;318597>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top