Solved

Accessinf the Serial Ports from a Console program

Posted on 1998-07-07
5
135 Views
Last Modified: 2010-04-04
I am currently developing a DOS program to test modems. I need some sample code to enable myself to better deelop this program.
0
Comment
Question by:WayneESS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 

Author Comment

by:WayneESS
ID: 1357255
Adjusted points to 200
0
 
LVL 2

Expert Comment

by:kjteng
ID: 1357256
Your question is too general. Could you be more specific on the problem you faced. Are you looking for third party component?
Are you using delphi 1, 2 or 3?
0
 

Author Comment

by:WayneESS
ID: 1357257
Well I am using Delphi 3 and I am just looking for some example code fragments to give me an idea how to access the SERIAL PORTS FROM DOS...
0
 
LVL 2

Accepted Solution

by:
kjteng earned 200 total points
ID: 1357258
The following is a simple example from Lloyd's help file:

program PortAccess;

var
  port: TextFile;
  x: char;

begin
  Assign(port, 'COM2');
  Rewrite(port);
  write(port, 'AS5', #13);
  { sample uses:
  read(port, x);
  write(port, x);
  }
  close(port);
end.


0
 

Author Comment

by:WayneESS
ID: 1357259
Thanks I think it is what I am looking for, I have not tested the Idea as of this time.  I will do some work on the project later today. I will try to let you know how it works...  
Wayne Stevens (Owner ESS)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

688 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