delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/06/13/10:16:56

Message-ID: <A39EEA2C33B08346A5D92E8DC6BD6B540723ECEE@exchange.moog.com>
From: "Shete, Bahubali (icd) USX" <bvshete AT moog DOT com>
To: "'djgpp AT delorie DOT com'" <djgpp AT delorie DOT com>
Subject: DJGPP Library function System(); problem under WIN NT
Date: Fri, 13 Jun 2003 10:13:27 -0400
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)

Hi,

I have a DOS utility which was originally built under TC on DOS. Recently we
moved over to DJGPP (GCC under DOS). I have 2 problems:

1.	the tmpnam() function with DJGPP returns filenames with '/' as
separators in the path for the temp. file name. Where as DOS doesn't like
it.
2.	Once I changed all the '/' to '\' then, I have another problem. With
these temp file names, I do a sorting using DOS sort.exe via system()
function call to DOS shell. This works fine under WIN 2000. But fails under
WIN NT. I tried to play with the _system_flags bits in stdlib.h. But could
not get it to work. 

Any clues?

Bahubali Shete,
  

- Raw text -


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