Call a C++ function from C#

前端 未结 4 1028
醉梦人生
醉梦人生 2020-12-18 11:17

I have 2 C++ DLLs. One of them contains the following function:

void init(const unsigned char* initData, const unsigned char* key)

The othe

4条回答
  •  难免孤独
    2020-12-18 12:13

    For classes, you don't need to do anything special. For value types, you need to use the ref keyword.

    MSDN has an article that summarizes this: http://msdn.microsoft.com/en-us/library/awbckfbz.aspx

提交回复
热议问题