GD> Not so. The following works just fine under DOS:
GD> void offhook( void )
GD> {
GD> FILE *port ;
GD> port = fopen( "COM1", "w" );
GD> fprintf( port, "ATM0H1\n" );
GD> fclose( port );
GD> }
DM> I'm not sure - I tried it with various compilers, not all of them
DM> liked it. It worked in some situations, not others. Other OS's,
DM> however, force support of this method.
I use Microsoft C++ v8.
Gerry Danen (gdanen@connect.ab.ca) C+Net BBS @ 403-477-9545
http://www.geocities.com/SiliconValley/Way/9823
1 year, 354 days, 5 hours, 12 minutes, and 45 seconds until January 1, 2000.
--- Maximus 3.01
---------------
* Origin: C+Net BBS. Programming & Networking. (1:342/601)
|