送交者: 松鼠 于 2005-4-28, 00:13:37:
回答: Visual C++里有没有简单方法知道本程序EXE所在地的full path? 由 AQuestion 于 2005-4-27, 21:42:43:
GetCurrentDirectory
The GetCurrentDirectory function retrieves the current directory for the current process.
DWORD GetCurrentDirectory(
DWORD nBufferLength, // size, in characters, of directory buffer
LPTSTR lpBuffer // pointer to buffer for current directory
);