|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Can't import System.IO.PortsI've got a small GPS-Reciever; very nice little thing. Now I want to design a little program to connect to the reciever. I looked on the internet for some help to connect to the COM-port. Just a little code "Imports System.IO.Ports". When I typed this code in VB.NET, it wouln't work because the namespace "System.IO.Ports" cannot be found. In the references of the project is already a version of "System.dll". This is the only version I've got. Does anyone know what went wrong over here and how I can solve this strange problem? -- Best regards, RichART (Insanity according to Einstein: run two times the same code, use the same values but expect other result) If I am not mistaken, System.IO.Ports is supported from up to version
2.0. If you are using version 1.1 then this namespace isn't there. RichART schreef: Show quoteHide quote > Can somebody please help me! This problem drives me mad! > > I've got a small GPS-Reciever; very nice little thing. > Now I want to design a little program to connect to the reciever. I looked > on the internet for some help to connect to the COM-port. Just a little code > "Imports System.IO.Ports". > > When I typed this code in VB.NET, it wouln't work because the namespace > "System.IO.Ports" cannot be found. In the references of the project is > already a version of "System.dll". This is the only version I've got. > > Does anyone know what went wrong over here and how I can solve this strange > problem? > > -- > Best regards, > > > RichART > > > > > (Insanity according to Einstein: run two times the same code, use the same > values but expect other result) Hi,
Assuming you are using VB 2005, no I cannot explain it. Perhaps some sort of bug. If you are using VS 2003, the you can download DesktopSerialIO from my homepage (I also have a DecodeGPS dll that you may want to use). There also is a VS 2005 version of DesktopSerialIO.dll that you can use as a work-around. These all are free. 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. |
|||||||||||||||||||||||