RE: current_dir() on WinXP
- Posted by Al Getz <Xaxo at aol.com> May 29, 2003
- 420 views
Hello again Wayne, I have to apologize for not mentioning that the include file i pointed you to doesnt use any win api links, it's all done in raw Euphoria code, and it's a very short file. All it does is look at command line args and do a simple split_path() ignoring everything except the dir. It's also of interest to note that the win api also doesnt work as expected, at least not on Win98 (which i end up using more then WinXP). If you drag and drop a file and use the win api GetCurrentDirectory() you still dont get the correct directory The function doesnt fail, it just returns the wrong directory! I think the name of the file is "GetCurrentDir.e" not "GetCurrentDir.ew". I try to remember to use the "e" extension for files that dont use windows specific stuff. Take care for now, Al euman at bellsouth.net wrote: > > Thanks AL, > > I knew I could do this using Win API, just wanted to > know if others had similar problems with built-in > Euphoria commands. > > Robert may want to check into changing current_dir() > for us Windows programmers. > > Euman > > ----- Original Message ----- > From: "Al Getz" <Xaxo at aol.com> > To: "EUforum" <EUforum at topica.com> > Sent: Wednesday, May 28, 2003 3:15 PM > Subject: RE: current_dir() on WinXP > > > > > > euman at bellsouth.net wrote: > > > > > > Has anyone other then me noticed that current_dir() > > > doesnt work on WinXP? > > > I always get the :\Documents and Settings directory... > > > > > > Euman > > > > Hello again Wayne, > > > > current_dir() doesnt work on any machine if you drag and drop > > a file onto your executable. > > > > I submitted a CClient piece installer a while back which has > > an include file "GetStartupDir.e" in the source. > > This has a function GetStartupDirectory() which always > > returns the correct startup directory. > > > > Take care for now, > > Al > > > > > > > > TOPICA - Start your own email discussion gro======================== > > > >