A
Abhi
I am using Reflection (.Net 3.0) to invoke certain methods in C# dll. There
are certain methods in C# dll which uses PInvoke to call method in native dll
for example:
[DllImport(NativeMethodDLL, CharSet = CharSet.Auto)]
public static extern IntPtr NativeMethod();
Public void SampleMethods()
{
NativeMethod();
}
and I get a TargetInvocationException exception when I call Invoke method of
MethodInfo class to invoke SampleMethods()
Question: Is is possible to call method using reflection which indirectly
calls native method?
Thanks,
Abhi
are certain methods in C# dll which uses PInvoke to call method in native dll
for example:
[DllImport(NativeMethodDLL, CharSet = CharSet.Auto)]
public static extern IntPtr NativeMethod();
Public void SampleMethods()
{
NativeMethod();
}
and I get a TargetInvocationException exception when I call Invoke method of
MethodInfo class to invoke SampleMethods()
Question: Is is possible to call method using reflection which indirectly
calls native method?
Thanks,
Abhi