Hi!
How can I find full path to where my application is running/installed? In VB there is a function called App.Path, App.ExeName and so forth. Is there a similar fuction in VC++ too?
Hi!
How can I find full path to where my application is running/installed? In VB there is a function called App.Path, App.ExeName and so forth. Is there a similar fuction in VC++ too?
Regards!
Ales Zigon
Rock 'em key things!!
If you're creating a console app then -
If it's a windows one then you can use GetCurrentDirectory() to get the path.Code:int main(int argc, char* argv[]) { printf("%s\n",argv[0]); return 0; }
zen
Hi!Originally posted by zen
If you're creating a console app then -
If it's a windows one then you can use GetCurrentDirectory() to get the path.Code:int main(int argc, char* argv[]) { printf("%s\n",argv[0]); return 0; }
Thanx! So, it means that everything should be done via API.
2B||!=2B this is the question (Hamlet rewritten in C)
Regards!
Ales Zigon
Rock 'em key things!!
No, the first example doesn't use the API. As you stated you were using MSVC, I was giving you an alternative incase you were using WinMain() instread of main().
zen
Oh, I see! Thanx again.Originally posted by zen
No, the first example doesn't use the API. As you stated you were using MSVC, I was giving you an alternative incase you were using WinMain() instread of main().
2B||!=2B
Regards!
Ales Zigon
Rock 'em key things!!