Solved

Accessinf the Serial Ports from a Console program

Posted on 1998-07-07
5
134 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
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

733 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