🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #2856

Re: __findnext returns different results

#2856
From: Alan Bellingham
Date: Thu, 07 Dec 2006 09:57
27 lines
1830 bytes
"Renald Yazmir" <renald@partmaker.com> wrote:

>I have an application written in C. It is compiled in Studio 6 and in 
>Borland 4.0.
>__findnext returns different values in these 2 environments
>
>Does anyone know why?

Yes.

In the first case, it is finding the file and returning 0.

In the second case, it is not finding the file, and returning -1.

Mystic Meg solves another problem!

If you'd prefer a sensible answer rather than Mystic Meg's psychic
guesses, then some indication of what your different values are would be
useful. Since in both cases, the documented function returns 0 or -1,
the only guessable conclusion is that the file is being found by one,
not by the other. This could be because you're running the program in a
different place, the file thus not being visible, or even on a different
PC that doesn't have the file.

Alan Bellingham
-- 
ACCU Conference: 11-14 April 2007 - Paramount Oxford Hotel
Technical Details
Message-ID: <e5pfn29d27mv7chaj6elp0k59jrc777hma@4ax.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4577371e@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ca243df67dd16814
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Alan Bellingham <alan@lspace.org>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: __findnext returns different results
Date: Thu, 07 Dec 2006 09:57:24 +0000
Organization: Private
Reply-To: alan@lspace.org
Message-ID: <e5pfn29d27mv7chaj6elp0k59jrc777hma@4ax.com>
References: <4577371e@newsgroups.borland.com>
X-Newsreader: Forte Agent 4.1/32.1088
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 193.129.251.253
X-Trace: newsgroups.borland.com 1165485395 193.129.251.253 (7 Dec 2006 01:56:35 -0700)
Lines: 27
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail