I'm trying to retrieve the contacts from my phone using C++ and the 3.0 SDK. Below is an excerpt of my code. An exception occurs when I make any call on the contact created by calling GetContact(). I've excluded the COM specific code.
// Now any call on the contact object fails...For example,
long numberOfFields = currentContact->GetAmountOfFields();
Do I need to make a COM call for the currentContact object, perhaps initializing it? If you can't provide a specific solution, any info on how to best debug this problem would be appreciated. I am new to the VC++ environment.