Hi,

I am trying to get a selected address book entry from the contact folder.
The following snippet shows the code fragment:

IDispatch *pIDisp;
IGWClientState *pIClientState;
IGWClientState6 *pIClientState6;
IGWAddressBookEntryList *pIAddressBookEntryList;

m_pIMgr->get_ClientState(&pIDisp);
if(pIDisp)
{
pIDisp->QueryInterface(IID_IGWClientState6, (void**)&pIClientState6);
pIDisp->Release();
if(pIClientState6)
{
pIClientState6->get_SelectedAddressBookEntries(&pIDisp);
pIClientState6->Release();
if(pIDisp)
{
pIDisp->QueryInterface(IID_IGWAddressBookEntryList, (LPVOID*)&pIAddressBookEntryList);
pIDisp->Release();
if(pIAddressBookEntryList)
{

long count = 0;
pIAddressBookEntryList->get_Count(&count);
pIAddressBookEntryList->Release();
}
}
}
}

In GW client 7.x:
The code works as expected.

In GW client 8.x:
If the display property "View By" of the address book is set to "Address Cards", the list of contacts returned by get_SelectedAddressBookEntries() is always empty.
If the display property set to "Details", the list of contacts is filled correctly.

Since many of our customers take advantage of the view "Address Cards", we need a solution to this problem.

Thanks for your help...