Hello out there.
I'm having a problem with loading a language-setting file (well, actually it's a txt file where the words are being splitted).
At the moment, I get the Path, where the application will be start trough the winAPI command 'GetCurrentDirectory'.
So if my application lies at C:\Program Files\App\App.exe and I start it manually in this folder, the return path of 'GetCurrentDirectory'.
But if I start the application over a shortcut which is at the desktop, 'GetCurrentDirectory' returns me: C:\Documents and Settings\USER\Desktop.
Is there another, better, command to get the real directory?
Best regards,
Peach
Umm... ok I've got it. :-)
I'm just gettings the .exe path over argv[0].
Then I search for the last "\\" and get the index.
Finally I just can copy out there a substring of 0 to the final index. :)