コード例 #1
0
CString ToppyFramework::MakeRelativePath(const CString& sPath)
{
	CString result = m_sCurrentFolder;

	if (sPath.IsEmpty() || sPath == ".")
		return result;

	if (sPath == "..")
		result = "../";

	if (sPath.Left(1) == "/")
		return MakeRootPath(sPath.Mid(1));
	return MakePath(sPath);
}
コード例 #2
0
ファイル: BaseTest.cpp プロジェクト: thinkhy/x3c_extension
BaseTest::BaseTest()
{
	MakeRootPath(s_datapath, L"TestData");
	MakeRootPath(s_temppath, L"Temp");
}
コード例 #3
0
bool ToppyFramework::Hdd_StartRecord(void )
{
	return m_TheState.StartRecord(MakeRootPath("DataFiles"));
}