🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Returning ERRORLEVEL

#13117
From: Remy Lebeau (TeamB)
Date: Mon, 27 Oct 2003 22:49
17 lines
1488 bytes
"Denville Longhurst" <Denville@metco.co.uk> wrote in message
news:3f9d9ab0@newsgroups.borland.com...
> Could anyone tell me how to return a specific errorlevel
> from a standard CPB GUI application

You would have to alter the project's WinMain() function directly in order
to return a custom value other than 0.

> I have tried PostQuitMessage(5) but it still returns errorlevel 0.

As well it should.  PostQuitMessage() will post a WM_QUIT message with its
wParam value set to 5.  It has nothing to do with the process's return value
at all.  That is your own responsibility to handle.


Gambit
Technical Details
Message-ID: <3f9da06c$1@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>

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 15:09:36 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f9d9ab0@newsgroups.borland.com>
Subject: Re: Returning ERRORLEVEL
Date: Mon, 27 Oct 2003 14:49:52 -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: 67.22.137.75
Message-ID: <3f9da06c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1067294828 67.22.137.75 (27 Oct 2003 14:47:08 -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