Using sharpdevelop for an Outlook Automation task:

  • Thread starter Thread starter venet
  • Start date Start date
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.
 
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.)


---
 
Back
Top