From: | Jack York |
Date: | 26 Jul 2000 at 18:57:39 |
Subject: | Re: PROGDIR: |
Hello Allan
On 25-Jul-00, Allan Odgaard wrote:
> On 25-Jul-00, Jack York wrote:
>
>> [...]
>> sprintf ( filename, "PROGDIR:%s", "filename"); and then puts
>> (filename);
>
>> I get PROGDIR:filename displayed where I should be something like
>> sys:filename.
>
>> What am I missing?
>
> sprintf has nothing to do with dos.library thus will not extract the
> proper name.
> For that you'll have to do something like Lock("ProgDir:", ...);
> NameFromLock(...);
Ahh, this may be where I am getting lost. Are you saying that
PROGDIR can only be accessed by calls that belong to the dos.library?
I was looking for examples of its use a year or two ago and found it in
the source code for the program Term. Several times the author
uses something like
strcpy (Path->Config->HelpFile, "PROGDIR:Term.guide");
How does this work?
Jack
--------------------------------------------------------------------<e|-
It's the End Of The Line for My Shipping Broker.
http://click.egroups.com/1/5175/1/_/451227/_/964634412/
--------------------------------------------------------------------|e>-