Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
other
informationbridge
office.intranets
office.misc
office.setup
office.xml
officeupdate
onenote
photodraw.discussion
powerpoint
producer
proj.standard&server
project
project.developer
project.pro_and_serve
project.server
project.vba
project2000
publisher
publisher.prepress
publisher.programming
publisher.webdesign
visio
visio.createshapes
visio.database.modeling
visio.dev.diagrams
visio.dev.shapesheet
visio.dev.vba
visio.dev.vc
visio.developer
visio.general
visio.installation
visio.printing
visio.software.modeling
visio.troubleshoot
  
 
date: Thu, 18 Oct 2007 23:49:47 -0700,    group: microsoft.public.visio.developer.vc        back       


Visio::Application and Visio::ApplicationClass confusion   
Hi,

I'm trying to create a Visio instance from within C++/CLI program
using the Visio Interop

The interop provides me two classes: 'ApplicationClass' and
'Application', ApplicationClass being an actual ref class and
Application merely an interface.

I wrote the following code and tried to compile it:
Visio::Application^ app = gcnew Visio::Application();

The compiler did not throw any error for it, despite the fact that in C
++/CLI interface classes cannot be instantiated.

So I'm wondering, how is this possible? Is there something special
about Visio::Application then that the compiler allows it to be
instantiated? Please, inform me.

Thanks.

~ Gurinder

PS: I have little knowledge of COM and am no expert either in how .Net
interops are created from COM DLLs.
date: Thu, 18 Oct 2007 23:49:47 -0700   author:   unknown

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us