Page 1 of 1

New SDK dos.library/DeleteFile and /SetFileDate gone?

Posted: Tue Oct 15, 2013 9:38 pm
by JosDuchIt
I am quite sure the new SDK is great, but ..?

I get undefined references to DeleteFile & SetFileDate
dos.doc still mentions DeleteFile and SetFileDate but they don't appear any more as library functions

SEE ALSO
GetVar(), SetVar(), FindVar(), DeleteFile(), <dos/var.h>

SEE ALSO
DateToStr(), StrToDate(), SetFileDate(), CompareDates(),
SecondsToDateStamp(), DateStampToSeconds()

Some defines disappeared too
dosextens.h (old)
#define cli_CommandDir cli_PathList /* old source compatibility - disappeared*/

dos.h (old)
#define LOCK_SAME_HANDLER LOCK_SAME_VOLUME

Re: New SDK dos.library/DeleteFile and /SetFileDate gone?

Posted: Tue Oct 15, 2013 9:45 pm
by salass00
Either add "#include <dos/obsolete.h>" to your code or switch to the new names:

DeleteFile() -> Delete()
SetFileDate() -> SetDate()

The old function names were misleading since they apply to directories as well as files.