R
Rohan lotlikat
Hi
Following code has a problem :
m_lpAdrBook->GetPAB(&ulEntryID,&lpEntryID);
LPCIID lpInterface = NULL;
ULONG ulFlags = 0;//MAPI_BEST_ACCESS;
ULONG ulObjType;
if(ulEntryID && lpEntryID)
LPABCONT m_pIABCon;
m_lpAdrBook->OpenEntry(ulEntryID,lpEntryID,NULL,ulFlags,
&ulObjType,(LPUNKNOWN*)&m_pIABCon);
LPMAPITABLE pIMPTable;
if(m_pIABCon)
m_pIABCon->GetContentsTable(0,&pIMPTable);
SizedSPropTagArray ( 3, sptCols ) = { 3,
PR_ENTRYID,
PR_DISPLAY_NAME,PR_EMAIL_ADDRESS };
LPSRowSet pABCRows = NULL;
HrQueryAllRows
(pIMPTable,(SPropTagArray*)&sptCols, NULL, NULL, 0,&pABCRows);
pABCRows->cRows is 0
Can you help her please .. i cant figure out whats going wrong.
Regards
Rohan
Following code has a problem :
m_lpAdrBook->GetPAB(&ulEntryID,&lpEntryID);
LPCIID lpInterface = NULL;
ULONG ulFlags = 0;//MAPI_BEST_ACCESS;
ULONG ulObjType;
if(ulEntryID && lpEntryID)
LPABCONT m_pIABCon;
m_lpAdrBook->OpenEntry(ulEntryID,lpEntryID,NULL,ulFlags,
&ulObjType,(LPUNKNOWN*)&m_pIABCon);
LPMAPITABLE pIMPTable;
if(m_pIABCon)
m_pIABCon->GetContentsTable(0,&pIMPTable);
SizedSPropTagArray ( 3, sptCols ) = { 3,
PR_ENTRYID,
PR_DISPLAY_NAME,PR_EMAIL_ADDRESS };
LPSRowSet pABCRows = NULL;
HrQueryAllRows
(pIMPTable,(SPropTagArray*)&sptCols, NULL, NULL, 0,&pABCRows);
pABCRows->cRows is 0
Can you help her please .. i cant figure out whats going wrong.
Regards
Rohan