Mail Archives: djgpp/1999/04/26/10:40:02
On Mon, 26 Apr 1999, Li Hongwei wrote:
> Here I send you the file names that I link or unlink,
> file "tea44458.ors" will link to "C:\Users\Postman/proc/tea44458.ors".
What is the full path of the file "tea44458.ors"? link() doesn't work
for files on different drives, so I need to know where does the
original file reside.
> I don't think it is the "/" or "\" cause the problem, and I am sure
> that there are not invalid charectors in the file names.
The slashes won't cause any trouble. But I don't understand the part
about invalid characters: I don't see any invalid characters in these
two file names.
> I can run this programme in a Dos prompt on Win NT. But if I invoke the
> programme in another programme, the link and unlink will cause problem.
How do you invoke the program from the DOS prompt? What is the
command line? Could you also print the argv[] array from within the
program and tell me what does it say when the program is invoked from
the DOS prompt and from another program?
Also, please tell me which version of DJGPP do you use. Is it v2.01
or v2.02?
- Raw text -