Trying to read Windows 7 Contacts doesn't work
问题 I based my code on http://msdn.microsoft.com/en-us/library/ms735866.aspx which is quite bugged, after some adaptation of function CreateNewContact() I tried the following. I don't have errors anymore but nothing is happening : IClassFactory* pFactory = NULL; HRESULT rc; rc = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED); if (rc == S_OK) rc = CoGetClassObject(CLSID_Contact,CLSCTX_INPROC_SERVER,NULL,IID_IClassFactory, (void **) &pFactory); if (rc == S_OK) rc = CreateNewContact( pFactory); if