Click to See Complete Forum and Search --> : getting an interface pointer


karan0700
March 30th, 2008, 02:09 PM
Hi
I m new to C++/CLI. I have created a com component and a wrapper( in C++/CLI) to access com interface from a managed code. I am able to create an instance of the wrapper class from a C++/CLI code and access the com cmpnt. But finding it difficult to do the same using a C# client.Not able to get a pointer to the interface. Could anyone guide me how to call CoCreateInstance from C++/CLI code(how exactly the parameters must be passed from the managed code) and get a pointer to the com interface.
Thanks!