On Sunday 12 October 2008 06:48:57 am Przemyslaw Czerpak wrote:

> Windows uses DOS error codes counted from 0 and significant
> are only 2 low bytes. AFAIR upper bytes are usd in some subsystems
> as bitfields.

Yes on significant 2 low bytes.

Not true on starting at 0. You can return negative error codes from DOS 
programs to Windows. We do it every day at work. Vendor supplied code returns 
errors -1, -2 and -3 for different errors.

If you think about 
void main()
where you can't return an error code compared to 
int main()
where you can return an error code you would know that -100 is a valid error 
code.

I can't recall a top level module starting with

uint main()

And I've never seen an error greater than 128

-- 
"Ninety percent of politicians give the other 10 percent a bad name." -- Henry 
Kissinger
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to