home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
nan_news
/
toolkit
/
pat5.doc
< prev
next >
Wrap
Text File
|
1991-10-25
|
2KB
|
45 lines
---------------------------------------------------------------------
Nanforum Toolkit v2.0 Patch #5 10/25/91
---------------------------------------------------------------------
I didn't know that the DOS call used in the ft_tempfil() function (INT
21h FUNCTION 5Ah) not only creates the temporary file, but it leaves
the file open. In other words, a handle is used and is left in the
AX register. This could be a problem if you're low on handles
because they could eventually get used up.
In order to preserve the calling convention, I just fclose() the file
now if it is created.
In order to update your library, just replace TEMPFILE.PRG in your
NFSRC.ZIP with the attached TEMPFILE.PRG (if you downloaded the source
code).
Then, you need a library utlitity (LIB.EXE comes with many versions
of DOS, and with most compilers). If you know what to do, simply
replace the .OBJ module with the new one that is included in
this patch file.
If you don't have a LIB utility, you can find one by going to the MSL
forum on CompuServe and downloading S12776.ARC.
The procedure, for those not sure:
1. Make a safe copy of NANFOR.LIB. Hide it away.
2. Change to the directory where NANFOR.LIB is located.
3. Put TEMPFILE.OBJ in the same directory as NANFOR.LIB.
4. Type
LIB NANFOR -+ TEMPFILE;
That should do it.
Remember to report all strange stuff in Section 5 on Nanforum! If you
have any problems, please contact me so I can help you get them
fixed.
Glenn Scott [71620,1521]