delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/27/13:24:48

Sender: root AT delorie DOT com
Message-ID: <37C6A147.6A7F697D@inti.gov.ar>
Date: Fri, 27 Aug 1999 11:31:35 -0300
From: salvador <salvador AT inti DOT gov DOT ar>
Organization: INTI
X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.0.36 i686)
X-Accept-Language: es-AR, en, es
MIME-Version: 1.0
To: Sascha Zapf <nc-zapfsa AT netcologne DOT de>, djgpp AT delorie DOT com
Subject: Re: TV Patch
Reply-To: djgpp AT delorie DOT com

Sascha Zapf <nc-zapfsa AT netcologne DOT de> wrote:
> Laurynas Biveinis schrieb:
>
> > Sascha Zapf wrote:
> > >
> > > Thanx for the Patch....
> > >
> > > But my Problem goes on...
> >
> > <snip>
> >
> > OK, I found the real problem - TVision does not recognize
> > DOSish backslash '\', only UNIXish slashes '/' as directory
> > separators. So when you pass "c:\\", it looks for last
> > directory separator - strrchr() function looks for '/' and
> > returns NULL... Then (size_t)(end - dir + 1) gives a _huge_
> > value...
> >
> > A very quick workaround - change "c:\\" to "c://" in your code.
> >
> > Now about the real fix. Salvador, isn't somewhere in TV
> > function for converting backslashes to slashes? It should
> > go OK here. (Just I'm afraid that not only here, but in
> > many other places...)
> >
> > Laurynas Biveinis
>
> O.K....Thats O.K for me, but all user of my progs want to use "c:\" coz
> they are using Dos, not Unix.
>
> I think a special Unix/Dos Version of TV just with #define MSDOS or
> #define would be more komfortable...

Users can use c:\ in TFileDialog dialogs, just try it in RHIDE or SETEdit.
I also added code to TDirListBox to handle a call with c:\

SET

--
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Visit my home page: http://welcome.to/SetSoft or
http://www.geocities.com/SiliconValley/Vista/6552/
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
                    set AT ieee DOT org set-soft AT bigfoot DOT com
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013



- Raw text -


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