Click here to Skip to main content
15,906,628 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: using select with filehandles (not sockets) under windows Pin
led mike2-Dec-08 4:30
led mike2-Dec-08 4:30 
AnswerRe: using select with filehandles (not sockets) under windows Pin
JudyL_MD2-Dec-08 4:31
JudyL_MD2-Dec-08 4:31 
Questionsomething for comipler.. Pin
tasumisra2-Dec-08 1:47
tasumisra2-Dec-08 1:47 
AnswerRe: something for comipler.. Pin
gayatri.neelema2-Dec-08 1:50
gayatri.neelema2-Dec-08 1:50 
GeneralRe: something for comipler.. Pin
tasumisra2-Dec-08 1:56
tasumisra2-Dec-08 1:56 
AnswerRe: something for comipler.. Pin
Jijo.Raj2-Dec-08 2:20
Jijo.Raj2-Dec-08 2:20 
GeneralRe: something for comipler.. Pin
tasumisra2-Dec-08 2:24
tasumisra2-Dec-08 2:24 
GeneralRe: something for comipler.. Pin
Jijo.Raj2-Dec-08 2:42
Jijo.Raj2-Dec-08 2:42 
Ofcourse during runtime. Dos execute code comes to scene while executing the applications. Seems you need more explanation.

Dos exit code is the return code that every dos application [as well as windows applications] should return. And as per standard, 0 means its executed successfully. The exit code of last executed application is stored in environment variable - ERRORLEVEL. For instance, take the command prompt and type these two commands.

copy blabla balalala
echo %errorlevel%


Since the copy command failed, you can see return code as 1. if you execute a successful command it should return 0.

For C/C++ compiled application, exit code is the integer returned by main() function. If you want to make the exit code of you application as 1 if success, then return 1 from main(). Hope its clear now. Smile | :)

Regards,
Jijo.

_____________________________________________________

http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

AnswerRe: something for comipler.. Pin
CPallini2-Dec-08 2:39
mveCPallini2-Dec-08 2:39 
AnswerRe: something for comipler.. Pin
David Crow2-Dec-08 3:17
David Crow2-Dec-08 3:17 
GeneralRe: something for comipler.. Pin
tasumisra2-Dec-08 4:07
tasumisra2-Dec-08 4:07 
QuestionRe: something for comipler.. Pin
David Crow2-Dec-08 4:16
David Crow2-Dec-08 4:16 
JokeRe: something for comipler.. Pin
CPallini2-Dec-08 6:00
mveCPallini2-Dec-08 6:00 
AnswerRe: something for comipler.. Pin
tasumisra3-Dec-08 17:40
tasumisra3-Dec-08 17:40 
Questioninvalid registry entries Pin
gayatri.neelema2-Dec-08 1:44
gayatri.neelema2-Dec-08 1:44 
AnswerRe: invalid registry entries Pin
Rajesh R Subramanian2-Dec-08 1:51
professionalRajesh R Subramanian2-Dec-08 1:51 
GeneralRe: invalid registry entries Pin
gayatri.neelema2-Dec-08 1:56
gayatri.neelema2-Dec-08 1:56 
GeneralRe: invalid registry entries Pin
David Crow2-Dec-08 3:25
David Crow2-Dec-08 3:25 
GeneralRe: invalid registry entries Pin
gayatri.neelema2-Dec-08 18:59
gayatri.neelema2-Dec-08 18:59 
GeneralRe: invalid registry entries Pin
Rajesh R Subramanian2-Dec-08 20:17
professionalRajesh R Subramanian2-Dec-08 20:17 
GeneralRe: invalid registry entries Pin
David Crow3-Dec-08 3:59
David Crow3-Dec-08 3:59 
GeneralRe: invalid registry entries Pin
gayatri.neelema3-Dec-08 22:14
gayatri.neelema3-Dec-08 22:14 
QuestionGrouping Controls using Group Box control Pin
Kiran Pinjala2-Dec-08 1:10
Kiran Pinjala2-Dec-08 1:10 
AnswerRe: Grouping Controls using Group Box control Pin
Code-o-mat2-Dec-08 1:41
Code-o-mat2-Dec-08 1:41 
GeneralRe: Grouping Controls using Group Box control Pin
Kiran Pinjala2-Dec-08 1:58
Kiran Pinjala2-Dec-08 1:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.