Using the Microsoft Outlook Object Library in C++

B

bahr

Hello,
I am trying to use the outlook object library in a managed C++ dll, to make
and save contacts, but i have come across a few problems, i dont really even
know where to begin. I have it all working in VB.net fine, and i am trying to
follow what i have done there but it doesnt seem to want to work in C++. So i
guess first of all, if anybody here has much experience with this please post
and ill post the problems that i am having.

Thank You
 
B

bahr

Ok, here is my main problem. I keep receiving a type load exception. Now the
project that im working on is a managed c++ dll. I have made a new class
which further automates the functionality of the Outlook Object library.
Currently im am testing the dll in a vb.net project and the dll will be used
mostly in vb.

So, i get the type load exception anytime i try to use the object library.
Another problem i have is making the new contact item.
First i declare a variable:
Interop::Outlook::ContactItem *Contact;
and i try to create the new contact item:
Contact = OutlookApp->CreateItem(Interop::Outlook::OlItemType::eek:lContactItem);

But createItem returns a System::eek:bject type, which cannot be stored into a
ContactItem type.

I dont know if i going about this in the wrong way or what but any help
would be much apprieciated.
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top