gpcommandlineinfo.cpp
来自「这是本人两年前兼职为某个公司做的石油钻进设计软件」· C++ 代码 · 共 51 行
CPP
51 行
// GPCommandLineInfo.cpp: implementation of the CGPCommandLineInfo class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "cvenus.h"
#include "GPCommandLineInfo.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CGPCommandLineInfo::CGPCommandLineInfo()
{
m_iAppType = 0;
}
CGPCommandLineInfo::~CGPCommandLineInfo()
{
}
void CGPCommandLineInfo::ParseParam(LPCTSTR lpszParam, BOOL bFlag, BOOL bLast)
{
CString sArg(lpszParam);
if (bFlag)
{
if(!sArg.CompareNoCase("1"))
m_iAppType = 1;
if(!sArg.CompareNoCase("2"))
m_iAppType = 2;
if(!sArg.CompareNoCase("3"))
m_iAppType = 3;
if(!sArg.CompareNoCase("4"))
m_iAppType = 4;
}
// m_strFileName gets the first nonflag name
else if (m_strFileName.IsEmpty())
{
m_sArg = sArg ;
}
CCommandLineInfo::ParseParam(lpszParam, bFlag, bLast) ;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?