Is it possible to call the parameterized constructor with COM? I am going to create an instance of C# class which has parameterized constructor with COM. Now it raises the Memory Excpetion. so I am not sure about instantiation of C# class carrying the parameterized constructor with COM. So Please let me know about the same.
My C# constructor is
public GetNumberFromClass(NumberClass number)
{
}
C++ Constructor:
NumberFromC#::NumberFromC#
{
getNumberFromClassPtr.CreateInstance(__uuidof(GetNumberFromClass));
}
and the pointer getNumberFromClassPtr throws memory exception as it comes NULL .