?
Solved

Accessinf the Serial Ports from a Console program

Posted on 1998-07-07
5
Medium Priority
?
137 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 800 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

Independent Software Vendors: 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

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month15 days, 4 hours left to enroll

770 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