PC Review


Reply
Thread Tools Rate Thread

Converting VB 2003 to VB 2005

 
 
cmdolcet69
Guest
Posts: n/a
 
      7th Sep 2007
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?

 
Reply With Quote
 
 
 
 
=?Utf-8?B?QW5hbmRbTVZQXQ==?=
Guest
Posts: n/a
 
      7th Sep 2007
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/tut...utorial_id=320


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


"cmdolcet69" wrote:

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

 
Reply With Quote
 
cmdolcet69
Guest
Posts: n/a
 
      7th Sep 2007
On Sep 7, 12:48 pm, Anand[MVP] <Anand...@discussions.microsoft.com>
wrote:
> 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/tut...utorial_id=320
>
> --
> Rgds,
> Anand
> VB.NET MVPhttp://www.dotnetindia.com
>
>
>
> "cmdolcet69" wrote:
> > 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?

 
Reply With Quote
 
Dick Grier
Guest
Posts: n/a
 
      7th Sep 2007
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.


 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      9th Sep 2007
"cmdolcet69" <(E-Mail Removed)> schrieb:
> 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>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting from VS 2003 to 2005 =?Utf-8?B?U3VzYW4=?= Microsoft C# .NET 0 6th Sep 2007 08:08 PM
Converting from .Net 2003 to .Net 2005 using a dll? Coleen Microsoft Dot NET 0 27th Sep 2006 06:47 PM
Converting .Net 2003 to .Net 2005 Coleen Microsoft Dot NET 7 20th Sep 2006 07:06 PM
Converting from VS.NET 2005 to VS.NET 2003 William Foster Microsoft Dot NET Framework Forms 2 20th Jul 2006 11:25 AM
Converting from VS.net 2003 to VS.net 2005 =?Utf-8?B?QWRpc2ggU29sYW5raQ==?= Microsoft VC .NET 1 11th Jul 2006 08:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:45 AM.