By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,795 Members | 1,199 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,795 IT Pros & Developers. It's quick & easy.

How to recieve or sent data through serial or parallel port?

P: n/a
I am writing program that will recieve or sent data to
selected port (users can select which port they want to
recieve or sent) but I don't know how or whick object I
can use.
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hello,

"K.K." <mr*****@hotmail.com> schrieb:
I am writing program that will recieve or sent data to
selected port (users can select which port they want to
recieve or sent) but I don't know how or whick object I
can use.


Thomas Scheidegger's (aka NETMaster) Serial Port FAQ:

http://makeashorterlink.com/?M2FE42E83

HTH,
Herfried K. Wagner
--
MVP VB Classic, VB .NET
http://www.mvps.org/dotnet
Nov 20 '05 #2

P: n/a
Hi,

These are two different issues. For serial communications, you use the
Windows serial communications APIs. This may be done by using a .NET class
that wraps the functionality of these APIs using Platform Invoke. I have
example code in my book (see below), and there are several examples
available online, both for VB and C# (example, www.msdn.microsoft.com and
search for 101 VB.NET examples). Or, you can use an ActiveX control, like
the free NETComm.ocx that you can download from my homepage. Lastly, there
is at least one commercial comms product for .NET (go to www.saxsoft.net for
this).

For parallel IO, the only way is to use a kernel-mode device driver. There
are no methods built into Windows for this. To make is easy, you can
download IOocx.ocx from my homepage.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.