If I want to pass the arguments : 4999, 61 and 301
When debugging I only have 301 ?
I overloadad the funtion ParseParam
Code:
void CCustomCommandLineInfo::ParseParam(const TCHAR* pszParam, BOOL bFlag, BOOL bLast)
{
if (bFlag)
{
if (lstrcmp(pszParam, _T("Batch")) == 0)
m_bBatch = true;
}
else
{
if (m_csIDEn.IsEmpty())
m_nIDEn = _wtoi(pszParam);
else if (m_csIDVer.IsEmpty())
m_nIDVer = _wtoi(pszParam);
else if (m_csIDComp.IsEmpty())
m_nIDComp = _wtoi(pszParam);
}
CCommandLineInfo::ParseParam(pszParam, bFlag, bLast);
}
In my InitInstance I have the following code:
Code:
CCustomCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
if (cmdInfo.m_bBatchLicence)
{
m_nVer = cmdInfo.m_nIDVer;
m_nComp = cmdInfo.m_nIDComp;
Mn_En = cmdInfo.m_nIDEn;
.....
...
}
When debuggin I have :cmdInfo.m_nIDEn = 301 and the others are in the dash
Whow can I pass more than one arguments ?
Thank you very much