473,503 Members | 1,733 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Converting VB 2003 to VB 2005

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?

Sep 7 '07 #1
3 1530
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?

Sep 7 '07 #2
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?

Sep 7 '07 #3
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.
Sep 7 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1141
by: Andrew Ducker | last post by:
VS 2005 uses Partial Classes to keep the designer-generated code separate from the user-created code. Obviously VS 2003 doesn't. However, when converting from 2003 to 2005, it doesn't split the...
0
1694
by: Rich | last post by:
(1) Is there a better place to pose the question below? (2) I am starting to convert my enterprise solution from VS 2003 (.NET v1.1.4322) to VS 2005 Professional (.NET v2.0.50727). The entire...
1
1284
by: Friso Wiskerke | last post by:
Hi All, We've got an VS.2003 ASPNET (VB) webproject which we would like to convert to VS.2005 so that we can make use of the Master Page feature. Converting the initial pages to 2005 is not such...
1
1395
by: Dan Munk | last post by:
Hello, I have a large project exclusively made up of interfaces (several hundred) that define the business objects used in our system. Heavy inheritance and aggregation are used in the project....
6
1795
by: Dennis D. | last post by:
Having problems converting Murach's Beginning Visual Basic.net (Prince) and Microsoft Press' Programming Visual Basic.net (Balena) examples for use in VB.net 2005 Express. The VS conversion wizard...
1
1445
by: Blasting Cap | last post by:
I had a copy of a project that was working in Visual Studio 2003 and Framework 1.1. After a computer crash, I was given VS 2005 and am having more than a little difficulty getting things to open...
0
1107
by: Tom | last post by:
I am converting a small VB.NET 2003 application over to VS 2005. I ran it thru the 'upgrade' wizard which prompty upgraded it without any real issues (except some warnings). However, I did notice...
6
5994
by: Nathan Sokalski | last post by:
I recently converted some ASP.NET 1.1 projects of mine, created with Visual Studio .NET 2003, to Web Application Projects in Visual Studio .NET 2005 so that I could use ASP.NET 2.0 (All my ASP.NET...
7
2478
by: Coleen | last post by:
Does anyone have any good detailed information on the conversion process? We are in the process of converting 2 projects from 2003 to 2005 and have some conversion errors that I can not find...
4
1716
by: Vadim | last post by:
Hello, I need to converting project that done on Visual Studio 2005 to Visual Studio 2003. What the best way to do this? Vadim Vilkhov
0
7203
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7281
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6993
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7462
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1514
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
383
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.