'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