Mail Archives: djgpp/1998/10/05/20:00:27
Message-ID: | <36196988.1CBD3F27@geocities.com>
|
From: | Sahab Yazdani <sahaby AT geocities DOT com>
|
X-Mailer: | Mozilla 4.5b2 [en] (Win95; I)
|
X-Accept-Language: | en
|
MIME-Version: | 1.0
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | MODEM Programming
|
Lines: | 42
|
Date: | Mon, 05 Oct 1998 19:51:20 -0500
|
NNTP-Posting-Host: | 209.148.141.79
|
X-Complaints-To: | abuse AT sprint DOT ca
|
X-Trace: | HME2.newscontent-01.sprint.ca 907631822 209.148.141.79 (Mon, 05 Oct 1998 19:57:02 EDT)
|
NNTP-Posting-Date: | Mon, 05 Oct 1998 19:57:02 EDT
|
Organization: | Sprint Canada Inc.
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Let me first say that this newsgroup has helped me beyond any $60 - $100
dollar book on Standard C/C++ programming! :-)
********* Now the question
Is there a library out there that can support the MODEM for games and
stuff?
And if there isn't, i presume that you can just do this:
// Appropriate Header Files
void main() {
FILE *fp;
fp=fopen("COM3 /*or appropriate com port*/","wb");
fputs( fp, "ATDT xxx-xxxx" );
fputs( fp, "..." );
...
...
...
...
...
fclose( fp );
}
I'm not sure if you can write to com ports like this because when you're
in DOS (or DOS box under windows 95) you can go like this:
COPY CON A > (or < I'm not sure) COM3
And it will open a port to COM3 for writing to. So i'm really
persuaming that you can do this in C++/C also?
--
**********************************************************************
* Sahab Yazdani * Those who look wise among the *
* Thornhill Secondary School * Foolish, look foolish amoung the wise *
**********************************************************************
* http://www.geocities.com/TimesSquare/Bunker/8994/index.html *
* Click the link to visit my portion of The Neverhood *
**********************************************************************
- Raw text -