Hi Markus,
"Markus Donath" <ne******@microsoft.comwrote in message
news:OO**************@TK2MSFTNGP04.phx.gbl...
>I want to create an Outlook-appointment using .NET VC.
My Visual Basic example starts with:
Dim oApp As Microsoft.Office.Interop.Outlook.Application = New
Microsoft.Office.Interop.Outlook.Application
But my C++ translation:
Microsoft::Office::Interop::Outlook::Application *oApp = new
Microsoft::Office::Interop::Outlook::Application;
does not compile. ('You cannot create an instance of an interface' or
something like that). Does anybody know, what's wrong here?
Why not copy the exact error message?
Do you use VC2003 or VC2005?
In VC2003 I would expect that something like ApplicationClass or
_ApplicationClass would be available which represents the so called COM
coclass. A coclass is an object you can instantiate and use by an interface
it implements, which would be Application in thiscase.
In VC2005 you would want to use the new C++/CLI which uses ^ instead of *
for managed pointers and gcnew instead of new.
--
SvenC
Markus