判断取就是了?
for(ULONG j=0;j<lpRow->cValues;j++)
{
SPropValue *lpProp = &lpRow->lpProps[j];
if (lpProp->ulPropTag == PR_DISPLAY_NAME_A)
strTemp = strTemp + " 名字: " + (char *)lpProp->Value.lpszA;
if (lpProp->ulPropTag == PR_EMAIL_ADDRESS_A)
strTemp = strTemp + " Email: " + (char *)lpProp->Value.lpszA;
if (lpProp->ulPropTag == PR_NICKNAME_A)
strTemp = strTemp + " 呢称: " + (char *)lpProp->Value.lpszA;
if (lpProp->ulPropTag == PR_ADDRTYPE_A)
strTemp = strTemp + " 类型: " + (char *)lpProp->Value.lpszA;
if (lpProp->ulPropTag == PR_HOME_FAX_NUMBER_A
strTemp = strTemp + " 传真号: " + (char *)lpProp->Value.lpszA;
}
for(ULONG j=0;j<lpRow->cValues;j++)
{
SPropValue *lpProp = &lpRow->lpProps[j];
if (lpProp->ulPropTag == PR_DISPLAY_NAME_A)
strTemp = strTemp + " 名字: " + (char *)lpProp->Value.lpszA;
if (lpProp->ulPropTag == PR_EMAIL_ADDRESS_A)
strTemp = strTemp + " Email: " + (char *)lpProp->Value.lpszA;
if (lpProp->ulPropTag == PR_NICKNAME_A)
strTemp = strTemp + " 呢称: " + (char *)lpProp->Value.lpszA;
if (lpProp->ulPropTag == PR_ADDRTYPE_A)
strTemp = strTemp + " 类型: " + (char *)lpProp->Value.lpszA;
if (lpProp->ulPropTag == PR_HOME_FAX_NUMBER_A
strTemp = strTemp + " 传真号: " + (char *)lpProp->Value.lpszA;
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货