Dev - C++ - Get Outlook contacts from C++ application

 
Vista:
sin imagen de perfil
Val: 4
Ha disminuido su posición en 2 puestos en Dev - C++ (en relación al último mes)
Gráfica de Dev - C++

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
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
sin imagen de perfil
Val: 4
Ha disminuido su posición en 2 puestos en Dev - C++ (en relación al último mes)
Gráfica de Dev - C++

Get Outlook contacts from C++ application

Publicado por Diego (3 intervenciones) el 21/08/2019 11:15:00
Just if usefull for anyone, I found how to compile the code here:
https://docs.microsoft.com/es-es/office/troubleshoot/office-developer/automate-outlook-2010-using-c-with-mfc

Just add to the import line:

... rename("Folder", "OlkFolder") rename("CopyFile", "OlkCopyFile")` rename("GetOrganizer", "GetOrganizerAE")

to avoid the compilation errors
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar