www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/26/10:40:02

Date: Mon, 26 Apr 1999 11:25:07 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Li Hongwei <hwli AT fedex DOT com>
Subject: Re: DJGPP programme on Win NT
In-Reply-To: <000e01be8f83$a3fb5d80$8bc9a19b@hongwei.corp.fedex.com>
Message-ID: <Pine.SUN.3.91.990426112444.15084O-100000@is>
MIME-Version: 1.0
ReSent-Date: Mon, 26 Apr 1999 17:37:23 +0300 (IDT)
ReSent-From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
ReSent-To: djgpp AT delorie DOT com
ReSent-Message-ID: <Pine DOT SUN DOT 3 DOT 91 DOT 990426173723 DOT 6979J AT is>
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019