|
sywh 发表于 2015-8-8 09:58
QString QDir::currentPath () [static]
Returns the absolute path of the application's current directo ...
还是不太会啊,比如
BOOL Search_Module(QString Path)
{
#if defined( _WIN32 )
char TempPath[MAX_PATH];
struct _finddata_t c_file;
long hFile;
// Search a module file in the current directory.
GetCurrentDirectory(MAX_PATH - 11, ConvertCharToLPWSTP(TempPath));
strcat(TempPath, "\\build\\Debug\\Type0019.md3");
if ((hFile = _findfirst(TempPath, &c_file)) == -1L) {
return FALSE;
}
strcpy((char*)Path, TempPath);
#elif defined(__APPLE__)
怎么把里面的GetCurrentDirectory替换掉,谢谢 |
|