Q: Newbee question, regarding a couple of syntaxes in c#

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Visual Systems AB \(Martin Arvidsson\) (martin.arvidsson_at_vsab.net)
Date: 11/18/04


Date: Thu, 18 Nov 2004 22:29:38 +0100

Hi!

I was testing an application that is writing a mail and sends it to a
recieptiens. I then came across
a couple of ??? in my head, coul anyone briefly tell me what the difference
is between this and where in the help i can read more about it

First out...

Outlook.Application oApp = new Outlook.Application();
My guess is that this create a new object oApp from this
Outlook.Application? Right?

Then the following, i just don't get, what they do and what it is called...

Outlook.NameSpace oNS = oApp.GetNamespace("mapi");
(Why not xxx = new xxx)

Outlook.MailItem oMsg =
(Outlook.MailItem)oApp.CreateItem(Outlook.OlItemType.olMailItem);

Outlook.Recipients oRecips = (Outlook.Recipients)oMsg.Recipients;

Thanx in advance for any help

Regards

Martin Arvidsson