Possible Duplicate:
How to get the application executable name in Windows (C++ Win32 or C++/CLI)?
I can find what directory the process is running in using GetCurrentDirectory(), but what about finding the directory the executabke resides in?
GetModuleFileName or GetModuleFileNameEx.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With