TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: John Slagle
from: Daniel Lynes
date: 1996-08-15 01:47:32
subject: DosOpen Fail

Hello John!

13 Aug 96 21:50, John Slagle wrote to All:

 JS> In passing a nonexisting file name to DosOpen, I am getting error
 JS> 110 Error Open Failed.  I am wondering why I don't get Dos Error
 JS> 2, File Not Found.

 JS>    /* DosOpen ->> fsOpenFlag */
 JS>    fsOpenFlags =
 JS> // OPEN_ACTION_FAIL_IF_EXISTS    | // 0x0000  /* -+-- -+-- -+--
 JS> 0000 */
 JS>    OPEN_ACTION_OPEN_IF_EXISTS    | // 0x0001  /* -+-- -+-- -+--
 JS> 0001 */ // OPEN_ACTION_REPLACE_IF_EXISTS | // 0x0002  /* -+--
 JS> -+-- -+-- 0010 */

Ok, #1...you might want to fix your commenting.  It's not kosher for C code
(nested commenting.)

 JS>    OPEN_ACTION_FAIL_IF_NEW       ; // 0x0000  /* -+-- -+-- 0000
 JS> -+-- */ // OPEN_ACTION_CREATE_IF_NEW     | // 0x0010  /* -+--
 JS> -+-- 0001 -+-- */

It's failing because the file does not already exist, and because you told it
that if the file does not already exist, that the function should fail.

However, I'm not positive, as I can't see your file directory.  But, this would
be a reasonable assumption to make.

Daniel

Internet:  dbl{at}eznet.ca

... What do I miss about my wife? Her absence.

--- GoldED/2 2.42.G0615+
* Origin: Enitharmon/2 Beta Home Site 604-527-0195 (1:153/8028)
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: 153/8028 831 800 270/101 712/515 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™.