🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Returning ERRORLEVEL

#13126
From: Fishface
Date: Tue, 28 Oct 2003 03:08
17 lines
1566 bytes
Remy wrote:
> That is one way to do it.  The other way is to simply specify the desired
> value as the return value for main(), ie:
>
>     int main()
>     {
>         //...
>         return 5;
>     }

I meant that in the past that I had done it exactly in that manner from a
console mode program, but the exit(5) worked when I just tested it from
a VCL GUI app.  I guess you mean to modify the project's .cpp source
to return the value from WinMain().  For some reason, I was thinking
that was a dummy function and the real WinMain() was buried in the
VCL somewhere, but maybe I was thinking of some OwlMain() error
I once saw...
Technical Details
Message-ID: <3f9dddd2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f9d9ab0@newsgroups.borland.com> <3f9dd481@newsgroups.borland.com> <3f9dd8f9$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,6211acfb31792
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-27 19:39:14 PST
From: "Fishface" <invalid@ddress.ok?>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f9d9ab0@newsgroups.borland.com> <3f9dd481@newsgroups.borland.com> <3f9dd8f9$1@newsgroups.borland.com>
Subject: Re: Returning ERRORLEVEL
Date: Mon, 27 Oct 2003 19:08:54 -0800
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 209.102.126.73
Message-ID: <3f9dddd2@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1067310546 209.102.126.73 (27 Oct 2003 19:09:06 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail