开发者

Call C# function from C++, how to pass parameter to C# function

I want to create a C# dll, then I'd like to call C# function from C++ with the following prototype:

setVal(DWORD id, BYTE* msginstime, BYTE* data);

I have not known how to pass id, msginstime, data parameters to C# function yet. (or the way C# function get parameters from C++ function).

I read this example:

http://www.codeproject.com/KB/cs/InterOp.asp开发者_开发技巧x but this example does not pass parameters.

Would you please give any hints on how to resolve this issue?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜