Files
EF3-Interface/PcDmis/Base/Interfac/Msi/Hsi/Tools/UsbUtility/UsbUtil/stdafx.cpp
T
2013-07-01 16:23:02 +08:00

25 lines
497 B
C++

// stdafx.cpp : source file that includes just the standard includes
// Mv_Util.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
CString GetAppPath(void)
{
CWinApp* pApp=AfxGetApp();
if(pApp==0)
return _T("");
TCHAR buf[256];
GetModuleFileName(0,buf,256);
CString sAppPath(buf);
int nPos=sAppPath.ReverseFind('\\');
if(nPos)
sAppPath=sAppPath.Left(nPos);
return sAppPath;
}