开发者

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

开发者 https://www.devze.com 2023-03-15 17:14 出处:网络
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 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

精彩评论

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

关注公众号