MCPcopy Create free account
hub / github.com/EasyDarwin/EasyPusher / LoadDataIntMicPosDev

Method LoadDataIntMicPosDev

EasyPusher_Win/EasyPusher/IniFileLoad.cpp:311–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309}
310
311void CIniFileLoad::LoadDataIntMicPosDev(CString strSection,CString strKey,int &nMicPosIndex,int &nMicCamNum)
312{
313 CString strValue=_T("");
314 LoadString(strSection,strKey,strValue);
315 CString strMicPosIndex = _T("");
316 CString strMicCamNum = _T("");
317 int nCount = strValue.Find(_T(","));
318 if(nCount<=0)
319 {
320 strMicPosIndex = strValue;
321 strMicCamNum = _T("");
322 }
323 else
324 {
325 strMicPosIndex = strValue.Left(nCount);
326 strMicCamNum = strValue.Mid(nCount+1,strValue.GetLength());
327 }
328 if(strMicPosIndex.IsEmpty())
329 {
330 nMicPosIndex = -1;
331 }
332 else
333 {
334 nMicPosIndex = _ttoi(strMicPosIndex);
335 }
336 if(strMicCamNum.IsEmpty())
337 {
338 nMicCamNum = 0;
339 }
340 else
341 {
342 nMicCamNum = _ttoi(strMicCamNum);
343 }
344}
345

Callers

nothing calls this directly

Calls 1

FindMethod · 0.80

Tested by

no test coverage detected