Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 27th, 2006, 09:21 AM
Authorized User
 
Join Date: Jul 2006
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default Outlook programming, no GetNamespace

'Outlook.Application' does not contain a definition for 'GetNamespace'(CS0117)

I'm just trying to setup a class to send an email. I'm just doing it for my own testing and learning. Anyway, it appears I'm the only one on the internet who has this problem.

I'm using SharpDevelop (icsharpcode.net)
I've added the COM Microsoft Outlook 9.0 Object Library
I've added the COM SafeOutlook library (Redemption.dll)

here is my code so far

Code:
Outlook.Application olApp = new Outlook.ApplicationClass();
Outlook.NameSpace olName = olApp.GetNamespace("MAPI");
heh, that's it. I have equivalent code in Foxpro6 and it works fine.

any ideas?

Thanks

 
Old July 27th, 2006, 10:31 AM
Authorized User
 
Join Date: Jul 2006
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There was an error I got when I tried adding the Outlook 9.0 Object library but I didn't screen capture it and I couldn't reproduce it. I finally was able to do it by adding it as a reference to a blank project.

Here's the error:

Cannot import type library using .NET SDK 1.0. Some, but not all type libraries can successfully be imported without it.


I assume that's the root of my problem. I'm unfortunately on NT, so my options are limited. I'm going to try installing .NET SDK 1.1

 
Old July 27th, 2006, 11:08 AM
Authorized User
 
Join Date: Jul 2006
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

annnnnnnnnnnnd .net sdk 1.1 can't be installed on NT.

So ends my journey.

Thanks for your help :(






Similar Threads
Thread Thread Starter Forum Replies Last Post
device DLL programming in client side programming hendyhanusin ASP.NET 1.0 and 1.1 Professional 2 February 19th, 2009 12:01 PM
Outlook 2007 Forms Programming ComboBox Arsi BOOK: Professional Outlook 2007 Programming ISBN: 978-0-470-04994-5 13 December 20th, 2007 03:22 PM
device DLL programming in client side programming hendyhanusin ASP.NET 1.0 and 1.1 Basics 0 March 21st, 2007 08:05 AM
device DLL programming in client side programming hendyhanusin ASP.NET 2.0 Professional 1 March 21st, 2007 08:04 AM
Professional Outlook 2000 Programming Colinspurs Wrox Book Feedback 3 August 17th, 2004 10:32 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.