TIP: Click on subject to list as thread! ANSI
echo: maxdev
to: Thomas W. Mueller
from: Frank McCormick
date: 1998-11-01 14:58:18
subject: Comm init problem

Thomas W. Mueller wrote in a message to Frank McCormick:


 FM> The code I use to initialize the com port is as follows;

 FM> Function ModemInit(P: Byte; var PHandle: HFile): Boolean;
 FM> var
/snip/

 TWM> This is code to open an inactive COM port. You don't need to do
 TWM> that since you have already an active handle. So just use it. Just
 TWM> for the fun of it here some of my code (used in MxXEd/2). It
 TWM> creates a custom "devicedriver" so I can just use standard Read
 TWM> and Write functions on a TEXT file variable. If you like it, feel
 TWM> free to use it but mention my name somewhere.

 TWM> UNIT uTWMComFile;

 TWM> INTERFACE

Thomas -

  Thanks for the code - I'll have to make a few changes (different
compiler) but I'll see how it works.

And I'll give you credit :)

Frank



frank_mccormick{at}radio-canada.ca 
--- 
* Origin: McBBS - Since 1987 Mtl.Que. V32b V42bis (1:167/119)
SEEN-BY: 396/1 632/0 371 633/210 260 267 270 284 371 635/506 725 728 639/252
SEEN-BY: 670/218
@PATH: 167/119 320 166 396/1 633/260 635/506 728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.