News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Some Useless Information

Started by baltoro, May 23, 2011, 11:01:36 PM

Previous topic - Next topic

baltoro

I've always wondered about this: what the numerical value that you pass to ExitProcess means. I couls never figure it out,...but, I have always assumed that if you pass THE WRONG VALUE,...every so often the process will hang or do something really annoying.
So,...here is the definitive answer, from Raymond Chen: Why Is My Program Terminating With Exit Code 3?

:eek ...I feel so much better now,... :eek

You will notice, if you read all the comments to Mr. Chen's Blog entry, that I wasn't the only one suffering from extreme anxiety over this issue,...
Baltoro

bomz

http://msdn.microsoft.com/en-us/library/ms681381.aspx

This Standart. -1,true and false also standart. sorry if I don't understand your problem
Under DOS commandline and backcode have more importance, now frequently forgot about them, but it gives a useful possibility for automatisation

hutch--

 :bg

It just goes to prove that you guys are not DOS batch file men. ERRORLEVEL has been around since the early DOS days.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

bomz

this is not very old days. this allow make not only batch. for example I have two program. one may get direct link from filehosting like rapidshare and many others inputing captcha and all other...
http://www.dimonius.ru/?usd
but like download manager it's not very good. so I run three copy of USD and they send links to Download Master
http://westbyte.com/dm/index.phtml?page=download
through command prompt

first program free and have english. second program free only for ex-USSR countries (where never pay for program but DM show commercial advertisement, which you may easily switch off), but you make take english localization from Download Accelerator and put it to free Download Master

donkey

I like to return 259, that way the guys who use a loop to check for an exit code instead of using the wait functions can have a bit of fun figuring out what happened  :bdg
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable

hutch--

 :bg

Shame if you need to do more than wait.  :P
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

dedndave

well - if you read the docs, someplace i read something like...
QuoteYou must return the value from MSG.wParam
but then, i guess you can set it with the PostQuitMessage parm   :P

only us very old guys remember ERRORLEVEL   :lol
everyone in here seems to remember it
what does that tell you ?
welcome to the old guys forum

baltoro

#7
Quote from: HUTCH...It just goes to prove that you guys are not DOS batch file men,...
Not only does it prove that I am not a DOS batch file man,...It shows that I don't even know what a DOS batch file man IS.
...Oh,...wait a minute,...is this,...Australian humor ???
:eek ...I guess that proves that I don't really understand Australian humor,...either,... :eek
...And, I thought I did,...
Baltoro

bomz

batch file very usefull - for ex batch install windows update from files

Astro

Windows isn't Linux, but batch files are to Windows what scripts are to Linux!  :U

hutch--

 :bg

baltoro,

Its even worse than you thought, years of practice making DOS com files that you either used in conjunction with batch files or even worse still, compiled the batch files themselves into DOS com files. In the modern era with CMD.EXE they are still useful for accurately sequencing command line utilities like assemblers, compilers, linkers, resource compilers and as many other console apps as you feel like writing.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php