Solved

System.IO.Ports

Posted on 2006-11-09
8
923 Views
Last Modified: 2008-01-09
hi im using visual studio 2003 and i believe using .net framework 1 however i need to use the System.IO.Ports class that is included into .net framework2

every time i try and compile my code in vs i get an error saying that .Ports is not recognised etc

is there a way to use the .net framework 2 and still use vs 2003 without upgrading vs to 2005

thanks

 
0
Comment
Question by:andrew67
8 Comments
 
LVL 2

Expert Comment

by:cybercrew
ID: 17909890
I'm sorry but I don't believe you can use .NET 2.0 framework with the Visual Studio 2003.  You can download the free version of Visual Studio Express 2005 at http://msdn.microsoft.com/vstudio/express/visualcsharp/download/
this should allow you access to the class you need.


Blaine
0
 
LVL 3

Author Comment

by:andrew67
ID: 17909919
thanks but if thats the case i will just have to uninstall 2003 and install 2005.

i must admit it sounds a bit crap though, a bit like prescribed update oh yes and a big loss of money

0
 
LVL 3

Expert Comment

by:troywillmot
ID: 17911804
Maybe you could get someone to create a COM wrapper for the System.IO.Port classes you need in 2005 you could call the 2005 component through the com wrapper from .NET 1/VS 2003 via interop - but you'd have to install both the custom com wrapper and the .NET framework 2.0 along with your app (and it's other dependencies, i.e .NET 1/1.1), and deal with the com/interop calls. Seems like a lot of work, but if you really don't want to upgrade your project to 2005 I think it's the only way.

0
 
LVL 3

Author Comment

by:andrew67
ID: 17912871
thanks but i think it will be easier to just use vs 2005
0
 
LVL 3

Accepted Solution

by:
bromose earned 50 total points
ID: 17921561
Hi. I have succesfuly used a product called SerialTools with VS 2003: http://franson.com/forum/forum.asp?FORUM_ID=15

Regards,
Kaj Bromose
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now