RE: current_dir() on WinXP
- Posted by Al Getz <Xaxo at aol.com> Jun 01, 2003
- 391 views
euman at bellsouth.net wrote: > > Thanks Al, > > your routine works great! > > Euman > > ----- Original Message ----- > From: "Al Getz" <Xaxo at aol.com> > > > > > 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 > Hello there Wayne, That's good to hear It doesnt actually do much, but at least it works when you use drag and drop to open the program, and when you use the shell context menu to open one of your programs written in Euphoria too. There is also a winapi function (probably the one you meant) that does the same thing, but i couldnt see linking, poking, calling the function, and then peeking the string just to use it Apparently it's easier to do in Euphoria then in winapi. Take care for now, Al