Get Outlook contacts from C++ application
Publicado por Diego (3 intervenciones) el 05/08/2019 13:22:09
Hi,
I need a C++ application to get Outlook contacts (from my local Outlook application)
I found this old example:
https://www.codeproject.com/Articles/3695/Importing-contacts-from-Outlook
But when I try to compile the code in my VS 2017 (once Outlook paths changed to mine) I get some errors in 'msoutl.tlh' file, autogenerated while compilation:
...
\msoutl.tlh(6015): error C3121: cannot change GUID for class 'Folder'
...
error C2556: 'AddressEntryPtr _AppointmentItem::GetOrganizer(void)': overloaded function differs only by return type from '_bstr_t _AppointmentItem::GetOrganizer(void)'
...
error C2371: '_AppointmentItem::GetOrganizer': redefinition; different basic types
Maybe I have something wrong in project configuration...
Any help?
Thanks,
Diego
I need a C++ application to get Outlook contacts (from my local Outlook application)
I found this old example:
https://www.codeproject.com/Articles/3695/Importing-contacts-from-Outlook
But when I try to compile the code in my VS 2017 (once Outlook paths changed to mine) I get some errors in 'msoutl.tlh' file, autogenerated while compilation:
...
\msoutl.tlh(6015): error C3121: cannot change GUID for class 'Folder'
...
error C2556: 'AddressEntryPtr _AppointmentItem::GetOrganizer(void)': overloaded function differs only by return type from '_bstr_t _AppointmentItem::GetOrganizer(void)'
...
error C2371: '_AppointmentItem::GetOrganizer': redefinition; different basic types
Maybe I have something wrong in project configuration...
Any help?
Thanks,
Diego
- msoutl.rar(95,9 KB)
Valora esta pregunta


0