ref keyword

E

eusebiu

You meen :
object[] o = new object[1];
o[0] = 1;
DynamicDllFunctionInvoke(@"D:\testDLL.dll", "test", typeof(bool), o);
where test function is
//test - CPP
extern "C" TESTDLL_API BOOL test(int * a)
{
*a = 20;
return TRUE;
}
....
It dosen't work... Exception has been thrown by the target of an
invocation
Can make an example and send it to me please?
 
M

Marc Gravell

Hmm.. I dind't see the "extern" in your original post (on either
thread) - so I'm "all out"...

[throws it open...]

Marc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top