missing references!

  • Thread starter Thread starter A.Black
  • Start date Start date
A

A.Black

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
 
This may be a little out of scope for this group.
You may want to post this to:

microsoft.public.outlook.program_forms
microsoft.public.office.developer.outlook.forms
microsoft.public.outlook.program_vba

My personal favorite:
Outlook Developers List on Yahoo...
http://groups.yahoo.com/group/outlook-dev/

--
Nikki Peterson [MVP - Outlook]

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
 
Back
Top