| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Modem and Direct Screen Writes |
MH> Peter Schuller wrote in a message to Mikko Hyvarinen:
MH> (cut)
PS>> rc = DosOpen (_argv[1], &hCom, &ulAction, 100L,
PS>> FILE_NORMAL,
PS>> OPEN_ACTION_OPEN_IF_EXISTS,
PS>> OPEN_ACCESS_READWRITE, 0L);
PS>> But it won't work, DosOpen return 12. Maximus passes on porthandle
PS>> "5" for COM2. Is there any specific "flag"
i have to use?
MH> Maximus has already opened the port. The handle it gives you is the
MH> one it received from DosOpen. So, don't need to use DosOpen, you can
MH> start writing to the port immediately with the handle you got from
MH> Maximus.
How? _argv[1] isn't convertible to a HFILE, or is the "5" (in
this case) suppose to be a number? In that case I can always convert it
manually...
/ Peter Schuller [TeamOS/2] petersch{at}kuai.se
--- FleetStreet 1.16 NR
* Origin: Hedgehog BBS 25h/day +46-(0)18-367781 (2:206/139)SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934 SEEN-BY: 711/955 712/407 515 624 628 713/888 800/1 @PATH: 206/139 0 201/505 0 200 2104 109/347 18 13/25 396/1 270/101 712/515 @PATH: 711/808 934 |
|
| 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™.