Click here to Skip to main content
15,910,872 members
Home / Discussions / COM
   

COM

 
GeneralCollection Pin
Tuwing.Sabado16-Jun-04 23:08
Tuwing.Sabado16-Jun-04 23:08 
GeneralRe: Collection Pin
Ghazi H. Wadi20-Jun-04 2:12
Ghazi H. Wadi20-Jun-04 2:12 
QuestionHow to implement custom print? Pin
Member 52815516-Jun-04 19:07
Member 52815516-Jun-04 19:07 
Generalcustom metadata editor for ArcCatalog Pin
abhishk2001@yahoo.com16-Jun-04 11:55
abhishk2001@yahoo.com16-Jun-04 11:55 
QuestionWhat happens when I load my dll this way… ? Pin
anderslundsgard16-Jun-04 1:44
anderslundsgard16-Jun-04 1:44 
AnswerRe: What happens when I load my dll this way… ? Pin
RChin16-Jun-04 6:37
RChin16-Jun-04 6:37 
GeneralRe: What happens when I load my dll this way… ? Pin
anderslundsgard16-Jun-04 21:44
anderslundsgard16-Jun-04 21:44 
GeneralOutlook C++ com addin Pin
Bangerman15-Jun-04 23:52
Bangerman15-Jun-04 23:52 
Hi,

I'm having a problem when iterating through the contacts in Outlook. I can create contacts ok and access all the properties of them, but when I try to iterate through them I get an exception. Can anyone see what I'm doing wrong Confused | :confused:


_NameSpacePtr pNamespace;
_ItemsPtr pItems;
_FoldersPtr pFolders;
MAPIFolderPtr pFolder;
_ContactItemPtr pContact;
CComVariant vIndex;

m_spApp->GetNamespace(_bstr_t("MAPI"),&pNamespace);
// select the default outlook contacts folder
pNamespace->GetDefaultFolder(olFolderContacts,&pFolder);
pFolder->get_Items(&pItems);
Outlook::OlObjectClass Class;
CComBSTR EntryId;
pItems->get_Class(&Class);
// iterate the list
hr=pItems->GetFirst((IDispatch**)&pContact);
while ((hr==S_OK) && (pContact!=NULL))
{
    pContact->get_Class(&Class);
    if (Class==olContact)
    {
        pContact->get_EntryID(&EntryId); // exception thrown on this line
        hr=pItems->GetNext((IDispatch**)&pContact);
    }
}

Any help you can offer would be greatly appreciated.;P
Generalproblem adding new interface method Pin
michael thomas15-Jun-04 12:01
michael thomas15-Jun-04 12:01 
GeneralRe: problem adding new interface method Pin
liull_121116-Jun-04 0:18
liull_121116-Jun-04 0:18 
GeneralSend fax is Error Pin
GuruVN14-Jun-04 17:14
GuruVN14-Jun-04 17:14 
GeneralCoRegisterClassObject Pin
youyou789@google.com14-Jun-04 8:38
youyou789@google.com14-Jun-04 8:38 
GeneralRe: CoRegisterClassObject Pin
ian mariano14-Jun-04 9:14
ian mariano14-Jun-04 9:14 
GeneralRe: CoRegisterClassObject Pin
youyou789@google.com14-Jun-04 9:51
youyou789@google.com14-Jun-04 9:51 
GeneralRe: CoRegisterClassObject Pin
ian mariano14-Jun-04 10:02
ian mariano14-Jun-04 10:02 
QuestionHow to connect to the running OAT instance? Pin
oleg6314-Jun-04 4:29
professionaloleg6314-Jun-04 4:29 
QuestionHow can I initialize tapiFax Pin
GuruVN13-Jun-04 19:23
GuruVN13-Jun-04 19:23 
QuestionHow to Create a COM object from a nominated EXE Pin
Guy le Mar8-Jun-04 15:51
Guy le Mar8-Jun-04 15:51 
GeneralPassing BSTR and Short variables in a function Pin
tommcf8-Jun-04 13:52
tommcf8-Jun-04 13:52 
GeneralRe: Passing BSTR and Short variables in a function Pin
Anonymous9-Jun-04 19:40
Anonymous9-Jun-04 19:40 
Questionhow to create a COM object Pin
iceman117-Jun-04 17:17
iceman117-Jun-04 17:17 
QuestionDownload my .ocx and 2 depending dll’s? Pin
anderslundsgard6-Jun-04 21:02
anderslundsgard6-Jun-04 21:02 
GeneralImplementing Span tag Pin
Member 5281555-Jun-04 0:22
Member 5281555-Jun-04 0:22 
GeneralRe: Implementing Span tag Pin
Andrew Quinn AUS6-Jun-04 22:23
Andrew Quinn AUS6-Jun-04 22:23 
QuestionHow to call methods of an appobject directly? Pin
Roozbeh693-Jun-04 18:32
professionalRoozbeh693-Jun-04 18:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.