?? compliervc60cl.cpp
字號:
// ComplierVC60CL.cpp: implementation of the CComplierVC60CL class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "ComplierVC60CL.h"
#include "regkey.h"
#include "Common.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CComplierVC60CL::CComplierVC60CL()
{
CRegKey reg;
if (ERROR_SUCCESS == reg.Open(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\VisualStudio\\6.0\\Setup"))
{
reg.Read("VsCommonDir", m_strMSDEVPath);
if (!m_strMSDEVPath.IsEmpty())
{
m_strMSDEVPath += "\\MSDev98\\Bin\\MSDEV.com";
}
}
}
CComplierVC60CL::~CComplierVC60CL()
{
}
BOOL CComplierVC60CL::Build(const CString &strProjectFile,
const CString &strConfigName,
const CString &strOutputFile)
{
ASSERT(!strProjectFile.IsEmpty());
ASSERT(!strConfigName.IsEmpty());
CString strMakedConfigName;
strMakedConfigName.Format("%s - win32 %s"
,CCommon::GetFileName(strProjectFile)
,strConfigName);
CString strParameters;
strParameters.Format("%s /MAKE \"%s\" /REBUILD /OUT %s"
,strProjectFile
,strMakedConfigName
,G_strBuildLog);
CCommon::WinExecAndWait32(m_strMSDEVPath, strParameters, CCommon::GetFilePath(strProjectFile));
return CCommon::BuildProjectSuccessed(CCommon::GetFilePath(strProjectFile) + G_strBuildLog);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -