B
Baskar RajaSekharan
Hi I have one doubt in C#.
I created one component called CustomTesting in VC7. The DLL
contains Two Method called Execute and SetOCxInterface. I want to Load the
Dll
from my Sample application(which is in C#) with out Addeing it in
Reference. ie i want to load it dynamically with the help of
Activator.CreateInstance. Then i want to access those method. How to Do
that?
onject inst;
Type myType1= Type.GetTypeFromProgID("CustomTesting.CallbackImpl.1");
inst = Activator.CreateInstance(myType1);
When i say inst . the intellicence is not showing the above Two methods
(Execute and SEtOCxInterface). For that i have to cast to the Default
interface .. correct?
TO cast it i hve to include it in a Namespace list. Since it is a
dynamically loaded dll , how can i added into namespace list dyna,ically?
Plese send a solution and give me the dample code.
Note I am herewith sending the VC& Code(which the component is created).
Regards,
R.Baskar
I created one component called CustomTesting in VC7. The DLL
contains Two Method called Execute and SetOCxInterface. I want to Load the
Dll
from my Sample application(which is in C#) with out Addeing it in
Reference. ie i want to load it dynamically with the help of
Activator.CreateInstance. Then i want to access those method. How to Do
that?
onject inst;
Type myType1= Type.GetTypeFromProgID("CustomTesting.CallbackImpl.1");
inst = Activator.CreateInstance(myType1);
When i say inst . the intellicence is not showing the above Two methods
(Execute and SEtOCxInterface). For that i have to cast to the Default
interface .. correct?
TO cast it i hve to include it in a Namespace list. Since it is a
dynamically loaded dll , how can i added into namespace list dyna,ically?
Plese send a solution and give me the dample code.
Note I am herewith sending the VC& Code(which the component is created).
Regards,
R.Baskar