From: Alain Rosenthal Newsgroups: comp.os.msdos.djgpp Subject: Win32: RSXNTDJ works but here are some bugs(?) Date: Thu, 02 Jul 1998 16:33:38 +0200 Organization: Akiba Teknowlogies Lines: 67 Message-ID: <359B9A42.3B9F@hyperman.co.il> NNTP-Posting-Host: ts003p14.jlm.netvision.net.il Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit CC: alain AT hyperman DOT co DOT il To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk First for all the people who needs to have WIN 32 applications: Following the advice of Dim Zegebart I downloaded RSXNTDJ to make WIN32 applications( I need to make cgi work under IIS) Installation was quite easy. The biggest problem I faced (undocumented, to the best of my knowledge) was problem with memory stack. I had to repeatedly use PESTACK rto increase the default. Otherwise I would get (very) strange behavior. Is there a way to debug (with gdb) functions compiled with the -Zwin32 -Zrsx32 switch? A few bugs that I found, If anybody know a solution, just tell me: - 1: The getpid() keeps returning number 2 (when making WIN32 application) under "DOS" gcc it works fine. -2: Similar problem with the function: tempnam(const char *dir, const char *pfx); Used on UNIX it changed the pathname, everytime it is caled. Under DOS it is always initiased to the same value. -3: the function feof() seems to provoke an error: I tried the following: ******************** #include fmakeword(FILE *f, char stop, int *cl) { int ll=0; while(1) { --(*cl); if( (feof(f)) || (!(*cl))) { ll++; printf("NUMBER is %d\n",ll); return (ll); } ++ll; } } main() { int length = 18; printf("HELLO\n"); fmakeword(stdin,'&',&length); } ***************************** Under DOS gcc it works fine Compiled with -Zwin32 -Zrsx32 , it produces an error! Any clue? -- Alain Rosenthal alain AT hyperman DOT co DOT il Tel: (972)(2)5814-999 Fax: (972)(2)5814-998