From: Sascha Zapf Newsgroups: comp.os.msdos.djgpp Subject: Re: TV Patch Date: Mon, 23 Aug 1999 22:37:51 +0100 Lines: 40 Distribution: world Message-ID: <37C1BF2F.6952C6FD@netcologne.de> References: <37BC9598 DOT FCC6D93A AT netcologne DOT de> <37BE5F62 DOT 1D0162D9 AT softhome DOT net> NNTP-Posting-Host: dial-ra-nc3-50.netcologne.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.netcologne.de 935440762 18607 195.14.251.50 (23 Aug 1999 20:39:22 GMT) X-Complaints-To: usenet AT news DOT netcologne DOT de NNTP-Posting-Date: 23 Aug 1999 20:39:22 GMT X-Mailer: Mozilla 4.6 [de]C-CCK-MCD QXW0321j (Win95; I) X-Accept-Language: de-DE,en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Laurynas Biveinis schrieb: > Sascha Zapf wrote: > > > > Thanx for the Patch.... > > > > But my Problem goes on... > > > > 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 UNIX would be more komfortable. I don't know much about TVision in C++, i'm Learning...But, what do you think about this. ? Sascha