PDA

View Full Version : programming outlook, missing references


as_black
09-06-2003, 06:37 PM
Hi,
Trying to create an application that interacts with Microsoft
Outlook2002. From looking at the examples on the web they say to add a
reference to Microsoft Outlook Object 10.0 Library. I do this as
instructed by going to add reference and selecting the apporiate
reference from the COM list.

However even though I do this I still get the error 'the type or
namespace 'Outlook' can not be found... (are you missing an assembly
reference). There are 3 errors in total all corresponding to missing
reference.

They error on the following code-:

Outlook.Application oApp;
Outlook._NameSpace oNameSpace;
Outlook.MAPIFolder oOutboxFolder;

Is there something I am missing to get this to work? I have downloaded
examples of applications that interact with Outlook and they work
fine, build with no errors. They seem to include the same references
as mine, apart from one that is simply named 'Office'. However I can
not seem to find this reference anyway.

Any ideas?

Thanks very much

Andrew Black

stuka
09-07-2003, 12:29 PM
In C++, you need a .tlb file (type library), that is often created by the VC++ system. C# PROBABLY needs a similar reference, so it can use the Outlook system's COM objects.