|
-
September 15th, 1999, 09:37 PM
#1
How to get app's starting directory
How can I get application's starting directory?
-
September 15th, 1999, 10:26 PM
#2
Re: How to get app's starting directory
CString GetExePath()
{
CString path;
LPSTR buf = path.GetBuffer(_MAX_PATH);
//Get exe path
VERIFY(::GetModuleFileName(NULL, buf, _MAX_PATH));
path.ReleaseBuffer();
// path.MakeLower();
return path.Left(path.ReverseFind('\\'));
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|