delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/01/15:16:15

Newsgroups: comp.os.msdos.djgpp
From: rd5718 AT irix DOT bris DOT ac DOT uk (Rich Dawe)
Subject: Re: Setting DOS box title under Win95
Message-ID: <EM4Ets.IrD@fsa.bris.ac.uk>
Sender: usenet AT fsa DOT bris DOT ac DOT uk (Usenet)
Organization: University of Bristol, England
References: <Pine DOT SUN DOT 3 DOT 91 DOT 971229101217 DOT 27720D-100000 AT is>
Date: Thu, 1 Jan 1998 19:44:16 GMT
Lines: 33
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Eli Zaretskii (eliz AT is DOT elta DOT co DOT il) wrote:
: > function to get the *actual* short filename for a file given the long
: > filename
: 
: What's wrong with `_truename' in the library?  Doesn't it do its job?
: For example, something like this should work (untested):

	I didn't actually know about the _truename function - I'll have a
look at the libc documentation. Sorry I haven't responded sooner - I
haven't been checking my mail all that regularly and I think I've missed
some of the responses on the thread I started :(

: >     /* Allocate some DOS memory */
: >     alloc_seg = __dpmi_allocate_dos_memory(APP_TITLE_BUFFER_PARA,
: > &alloc_desc);
: >     if (alloc_seg == -1) return(-1);
: 
: You might have saved some work here by using the DJGPP transfer
: buffer.  It is already allocated for you and is at least 2KB-long,
: (usually 16KB) which should be more than enough for getting the title.

	I tried this but it didn't seem to work. This did work, so I went
with it. I might try using the transfer buffer again. Thank you.

-- 
==============================================================================
 "You don't have to find the solution, you've got to understand the problem,
    and don't go hoping for a miracle." - 'Slight Return' by the Bluetones

              Rich Dawe - 3rd year Physicist @ Bristol Uni, UK
E-mail: rd5718 AT bristol DOT ac DOT uk        Web pages: http://irix.bris.ac.uk/~rd5718/
==============================================================================

- Raw text -


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