Dude wrote:ward wrote:The output should be the new path
GetCurrentDirectory() is not for getting the exe's folder. Use ProgramFilename() for that.
Of course you are right, but what is your point?
GetCurrentDirectory() is for getting windows working directory.
To get the correct working directory is very important for some programs, for example, console tools.
I even don't care about exe's folder.
With this bug, you cannot get the correct working directory forever.
Because it is changed when the program starting.
Although this bug is easy to overcome (compile with some parameter, for example, /commented like I said)
But this is still a bug, right?
Who always use PureBasic with IDE will never find this bug.
But I use sublime text instead of the IDE, so I can find this bug, and then I report it.
I post this thread at "Bugs - Windows". Because I just want to report a bug and I never have any coding question.
In fact, I already point out the way to overcome the bug in first post.
And I also found out where is the incorrect assembly output from pbcompiler (let Fred or someone can fix it more easily).
I don't know who move this thread to "Coding Questions". It's very
STRANGE and
IMPOLITE.