Using sharpdevelop for an Outlook Automation task:

V

venet

I don't know why my (very simple, Hello World-level) VB.NET build returns
this Error feedback:

Type 'Outlook.Application' is not defined.(BC30002)
Type 'Outlook.NameSpace' is not defined.(BC30002)
Type 'Outlook.MAPIFolder' is not defined.(BC30002)
Type 'Outlook.Items' is not defined.(BC30002)
Type 'Outlook.MailItem' is not defined.(BC30002)


(Those errors are occurring on my dimension lines, as follows):
Dim ol As Outlook.Application
Dim olns As Outlook.NameSpace
Dim objFolder As Outlook.MAPIFolder
Dim AllInbox As Outlook.Items
Dim Item As Outlook.MailItem

I'm including the Reference:
Microsoft CDO for Windows 2000 Library

But does this need some kind of COM Interop arrangement in order to build
properly?

Or, rather, is it the way I'm using the .NET language? (I'm very new at the
platform.)

Thank you for any help.
 
V

venet

That's great! It works.

Thank you my friend. (I think you may also have saved my job on a MAPI
project 6 or 7 years ago.)


---
 

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