From: "Steve Patton" Newsgroups: comp.os.msdos.djgpp Subject: Re: Rhide Win95 Virtual Machine Temporary Fix Date: Thu, 15 Jan 1998 13:29:36 -0700 Organization: AT&T WorldNet Services Lines: 37 Message-ID: <69lrkb$2u1@bgtnsc02.worldnet.att.net> References: <69k6lm$r59 AT bgtnsc02 DOT worldnet DOT att DOT net> <34BE111A DOT 3DEAC4E7 AT cornell DOT edu> NNTP-Posting-Host: 12.67.33.81 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk A. Sinan Unur wrote in message <34BE111A DOT 3DEAC4E7 AT cornell DOT edu>... >Steve Patton wrote: > >> void main () > >> exit ( 0 ); > >now, here is a situation where returning a proper success/failure code >is necessary. apparently, your program is a command line utility that >can succeed or fail. but you give the os NO indication whatsoever as to >whether your program succeeded. Which is one of the many reasons I posted the code. So people could change to their liking. I do not run it in an environment where the return code is important (such as a batch file). For that, the system is usually independent, and does not require maintenence. This is purely an appearence(sp) fix. The operation of the computer is not hindered by having a false Virtual Machine Title, so if no one is there to see if it worked correctly or not, no one is there to notice the title is wrong. Also, Virtual Machine Title is a Win95 only command, the only reason it would fail is if Win95 wasn't running, and in that case there would be no reason to call this. Perhaps there is some reason I'm looking over that makes it necessary. >note that the only valid ANSI return type for main is int. (for this, >and other issues, and references, i recommend you download the >comp.lang.c faq.) For that matter, __dpmi_int is not ANSI either. This solution is geared towards users of Rhide, which also use DJGPP/GNU, and that editor/compiler does conform to the code given. -Steve