I need the code to return the directory the current application that is running in.
For example:
If you are running
C:/Program Files/My Company/[login to view URL]
it should return
C:/Program Files/My Company/
I need this for Microsoft C# and C++ (unmanaged code and not using the the MFC libraries).
Currently I have this hardcoded in my applications to
C:/Program Files/My Company/
but am running into trouble when my users have foreign installations and c:/Program Files/ is worded for the local culture.
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
Microsoft C#
and
Microsoft C++ (Unmanaged code not using MFC libraries - i.e. running from the command prompt)