|
-
July 23rd, 2005, 04:03 PM
#1
How to open serial port in VB.NET 2003 with PPC
Hi ALL, I tried to look for it in the forum but the only part discussing this is in VC with the "CreateFile" call.
I have a pocket PC with Windows Mobile 2003 installed, and Visual Studio .NET 2003.
I am trying to communicate with the GPS (which comes build in in the handled pc on com2). I understand what I need to read and parse from the GPS com port in order to build simple GPS application, BUT can't tell how to read from the serial port.
Can anyone provide me a sample code which uses to open serial port, read from it (maybe using a timer?) and close it?
-
August 14th, 2005, 02:28 PM
#2
Re: How to open serial port in VB.NET 2003 with PPC
-
August 18th, 2005, 12:10 AM
#3
Re: How to open serial port in VB.NET 2003 with PPC
 Originally Posted by anrabi
no one?
i'm having the same problem. can anyone provide assistance regarding reading from Pocket PC serial port?
thanks
Sashi
-
August 18th, 2005, 04:16 PM
#4
Re: How to open serial port in VB.NET 2003 with PPC
-
August 18th, 2005, 06:01 PM
#5
Re: How to open serial port in VB.NET 2003 with PPC
 Originally Posted by kirants
thanks kirants.
but all the articles talk about VC++. Isn't there a simple VB.NET sample regarding this?
Thanks again, though.
SASHI
-
August 18th, 2005, 06:05 PM
#6
Re: How to open serial port in VB.NET 2003 with PPC
Oops.. Missed that part.. Sorry, am not familiar with VB.net.
Did you try posting this question in the VB.Net forum of CG ?
-
August 19th, 2005, 04:29 AM
#7
Re: How to open serial port in VB.NET 2003 with PPC
shashi - maybe we need to write VC.NET DLL and use it in VB.NET .. ?
The thing is I need it at CF.
Can someone guide me how to write this DLL ?
-
August 30th, 2005, 07:36 PM
#8
Re: How to open serial port in VB.NET 2003 with PPC
ok.. i built DLL for serial communication in VB :
1. I copied some VC code from the exaples given here bykirants.
2. Some minor changes been done in the constructor of the class to meet my needs.
3. The project was a VC class library which generates DLL. I needed also SerialNET DLL as a reference in the VB program.
4. There is some kind of a problem when referncing your own DLL. It is related to the mscorlib dll key or something. Anyway - you can change the refernce order (bring mscorlib to be first refernce) using notepad in your vb project dir.
5. It works just fine!
Although I did not get answer to a solution in VB, I want to thank you.
BST RGRD, Anrabi.
-
August 30th, 2005, 07:41 PM
#9
Re: How to open serial port in VB.NET 2003 with PPC
cool..
Waiting for the day when programmers start talking about the same libraries and classes and methods across languages.. Hopefully, .Net succeeds in doing that
-
September 15th, 2005, 12:21 AM
#10
Re: How to open serial port in VB.NET 2003 with PPC
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|