delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/08/19:30:43

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: I REALY NEED HELP!! PLEASE!!
Date: Fri, 08 May 1998 19:17:31 -0400
Organization: Two pounds of chaos and a pinch of salt.
Lines: 58
Message-ID: <3553928B.3591@cs.com>
References: <01bd7a0b$2b635140$a6ef41c2 AT default> <355358cf DOT 0 AT daisy DOT ans DOT com DOT au>
NNTP-Posting-Host: ppp121.cs.net
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

WWynd's wrote:
> 
> You need cwsdpmi.exe in your c:\windows\command\

Not true.  It just has to be somewhere in the PATH or in the same
directory as the program that needs it.

> cwsdpmi is a thing that when you start to get low on memory it uses virtual
> memror,

Only vaguely true.  cwsdpmi is a DPMI host that supplies DPMI features
to DJGPP programs when they are not running in an environment that
already offers them.  The only case where this is true is running from
plain DOS without Windows or commercial memory managers such as QEMM
loaded.  If your program is only being run from Windows, cwspdmi is
never touched.

> Also it's better at the end of the program to put return 0, keeps the
> Compiler Happy; eg:-
> 
> void main()
>  {
> ...........
> 
> ..............
> .....
> return 0;
>  }

It doesn't "keep the compiler happy;" it's a requirement of the C and
C++ languages.  That you can get away with it is a function of the way
the compiler is designed and not an excuse to do it.  In fact, 'return
0' is useless without the correct prototype:

int main()

See questions 11.12 through 11.15 of the official comp.lang.c FAQ
(http://www.eskimo.com/~scs/C-faq/top.html) if you don't believe me. 
Also, if you compile C++ programs or use gcc 2.8.0 or higher, and pass
the '-Wall' parameter to gcc, it'll tell you that it doesn't approve of
void as a return type for main().

> Real programmers don't know how to speel.

You'd better know how to speel if you want the computer to like you. 
:-)  As for people, well, the way you use language defines the way you
communicate, which in turn defines how other people see you.  So if you
want to look illiterate, by all means continue misspelling things.

-- 
John M. Aldrich, aka Fighteer I <fighteer AT cs DOT com>  UIN# 7406319

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d- s+:- a-->? C++>$ U@>++$ p>+ L>++ E>++ W++ N++ o+>++ K? w(---)
O- M-- V? PS+ PE Y+ PGP- t+(-) 5- X- R+(++) tv+() b+++ DI++ D++ G>++
e(*)>++++ h!() !r !y+()
------END GEEK CODE BLOCK------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019