delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
Message-ID: | <002901c19c89$4f71df80$2de1a0c8@rjo.virtua.com.br> |
From: | "Pedro Izecksohn" <izecksohn AT yahoo DOT com> |
To: | <djgpp AT delorie DOT com> |
Subject: | return 1; |
Date: | Sun, 13 Jan 2002 21:23:20 -0200 |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook Express 5.50.4522.1200 |
Disposition-Notification-To: | "Pedro Izecksohn" <izecksohn AT yahoo DOT com> |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4522.1200 |
Reply-To: | djgpp AT delorie DOT com |
This is a multi-part message in MIME format. ------=_NextPart_000_0026_01C19C78.868A3E60 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit Hi, What do happen when main return 1 ? Does the program passes this value to DOS's ERRORLEVEL ? Why in my code errorlevel isn't catching the 1 value ? I'm attaching here the .cc and the .bat codes. The .bat file is renamed to .txt to pass thru the file filter, so to do it work rename it back to .bat . ------=_NextPart_000_0026_01C19C78.868A3E60 Content-Type: text/plain; name="terl.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="terl.txt" erl if errorlevel 1 echo 1 if errorlevel 0 echo 0 ------=_NextPart_000_0026_01C19C78.868A3E60 Content-Type: application/octet-stream; name="ERL.CC" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="ERL.CC" int main () { return 1; } ------=_NextPart_000_0026_01C19C78.868A3E60-- _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |