这个c++写的dll如何调用啊
分析得到dll函数名
public: int __thiscall
CIMONetClient::SendNotice(
class std::vector<struct STUserID,class std::allocator<struct STUserID> > const &,
class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > const &)
如何在c#中调用?
[DllImport("NetClient.dll", CharSet = CharSet.Auto, EntryPoint = "SendNotice")]
public static extern int SendNotice(int[] arr,String str);
这个SendNotice的参数应该如何写?
dll
[解决办法]
不要做A语言代码修改为B语言代码的无用功。
也不要做用A语言代码直接调用B语言代码库这样复杂、这样容易出错的傻事。
只需让A、B语言代码的输入输出重定向到文本文件,或修改A、B语言代码让其通过文本文件输入输出。
即可很方便地让A、B两种语言之间协调工作。