Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!julius.cs.uiuc.edu!rpi!dali.cs.montana.edu!milton!uw-beaver!ubc-cs!unixg.ubc.ca!cheddar.ucs.ubc.ca!ballard From: ballard@cheddar.ucs.ubc.ca (Alan Ballard) Newsgroups: comp.os.os2.programmer Subject: Re: Max Open File Problem Message-ID: <1991Jan9.162728.8092@unixg.ubc.ca> Date: 9 Jan 91 16:27:28 GMT References: <6070002@hpdmd48.boi.hp.com> Sender: news@unixg.ubc.ca (Usenet News Account) Organization: Computing Services, University of British Columbia Lines: 18 In article <6070002@hpdmd48.boi.hp.com> barry@hpdmd48.boi.hp.com (Barry Kurtz) writes: >Does anyone know of a way to open more than 14 user files under OS/2 >using the Microsoft C 6.0 compiler? Any help would be greatly >appreciated. You may have to reassemble the startup code. See the file /msc/source/startup/os2/crt0data.asm that comes with the MSC distribution. It includes commented-out code to increase DosSetMaxFH, which you are supposed to enable of you need more than 20. Alternatively, you might try just adding the call to DosSetMaxFH to your program before you actually open any files. I don't see why this wouldn't work. Alan Ballard | Internet: ballard@ucs.ubc.ca University Computing Services | Bitnet: USERAB1@UBCMTSG University of British Columbia | Phone: 604-228-3074 Vancouver B.C. Canada V6R 1W5 | Fax: 604-228-5116