Article View: borland.public.cppbuilder.nativeapi
Article #13119Re: Returning ERRORLEVEL
From: Fishface
Date: Tue, 28 Oct 2003 02:29
Date: Tue, 28 Oct 2003 02:29
11 lines
1290 bytes
1290 bytes
Denville Longhurst wrote: > Could anyone tell me how to return a specific errorlevel from a standard > CPB GUI application so that I can test the return in a batch file (I know > how to do the batch file bit). I did this from a console mode program and set the return value from main(). I just tried: exit(5) ...(from stdlib.h) on a button click and it did set the errorlevel properly.
Technical Details
Message-ID:
<3f9dd481@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!nntp.abs.net!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<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 18:39:50 PST From: "Fishface" <invalid@ddress.ok?> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f9d9ab0@newsgroups.borland.com> Subject: Re: Returning ERRORLEVEL Date: Mon, 27 Oct 2003 18:29:08 -0800 Lines: 13 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.93 Message-ID: <3f9dd481@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1067308161 209.102.126.93 (27 Oct 2003 18:29:21 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!nntp.abs.net!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail