Accessinf the Serial Ports from a Console program

I am currently developing a DOS program to test modems. I need some sample code to enable myself to better deelop this program.
WayneESSAsked:
Who is Participating?
 
kjtengConnect With a Mentor Commented:
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
 
WayneESSAuthor Commented:
Adjusted points to 200
0
 
kjtengCommented:
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
 
WayneESSAuthor Commented:
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
 
WayneESSAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.