c# 调用 c++ dll System.AccessViolationException:“尝试读取或写入受保护的内存。这通常指示其他内存已损坏。”

 

 

c++ 回调委托头部加上 [UnmanagedFunctionPointer(CallingConvention.Cdecl)]

 

[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void EventCallback(string version, string jason);

posted @ 2022-06-11 09:55  非酋的欧皇  阅读(921)  评论(0)    收藏  举报