Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / January 2005

Tip: Looking for answers? Try searching our database.

Why is Outlook.Application ambiguous in namespace?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brett - 06 Jan 2005 05:24 GMT
I'm following the code here
http://support.microsoft.com/default.aspx?scid=kb;en-us;313788 but this
build error in VS Studio .NET:

'Application' is ambiguous in the namespace 'Outlook'

The code is
Dim oApp As Outlook.Application = New Outlook.Application()

Any suggestions?

Thanks,
Brett
Jeff Young - 08 Jan 2005 14:39 GMT
Because you are attempting dimension an existing object variable as an
outlook application and then trying to assign a new instance of an outlook
application to the same variable. Use this:
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Dim objOUApp As New Outlook.Application
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

> I'm following the code here
> http://support.microsoft.com/default.aspx?scid=kb;en-us;313788 but this
[quoted text clipped - 9 lines]
> Thanks,
> Brett
Brett - 08 Jan 2005 14:55 GMT
Yes - I'm doing that now but please take a look at my post:

Subject: Help with QueryInterface for interface 'Outlook._Application'
Date: 1/8/05  8:10 AM EST

Thanks,
Brett

> Because you are attempting dimension an existing object variable as an
> outlook application and then trying to assign a new instance of an outlook
[quoted text clipped - 16 lines]
>> Thanks,
>> Brett

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.