K
KK
Hi All
i have an interface like this in file Interface.h
__gc __interface IParam
{
};
My implementation class is like this
public __gc class Param : IParam
{
}
The ablove implementation class is in a separate assembly.
In my application i'm using Activator::CreateInstance to create class from
Assembly dynamically
System.Runtime.Remoting.ObjectHandle * hdl ;
hdl = Activator::CreateInstance(AssemblyName, ClassName)
IParam = __try_cast<IParam*>(hdl->Unwrap());
here i'm getting invalid cast operation...
I have included IParam interface in my app as source file.
Can anybody help me what's going wrong..
Thanks and Regards
Krishna
i have an interface like this in file Interface.h
__gc __interface IParam
{
};
My implementation class is like this
public __gc class Param : IParam
{
}
The ablove implementation class is in a separate assembly.
In my application i'm using Activator::CreateInstance to create class from
Assembly dynamically
System.Runtime.Remoting.ObjectHandle * hdl ;
hdl = Activator::CreateInstance(AssemblyName, ClassName)
IParam = __try_cast<IParam*>(hdl->Unwrap());
here i'm getting invalid cast operation...
I have included IParam interface in my app as source file.
Can anybody help me what's going wrong..
Thanks and Regards
Krishna