具体c dll中的声明为:
extern "C" _declspec(dllexport) void func(char* type, char* Info, char* addr);
三个入参均为char*c#中调用为:
[DllImport("ClientDll.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
// [DllImport("ClientDll.dll")]
public static extern void func(string type, string Info, string addr);
我传进去的info中含中文和英文都能正常,包含韩文时dll那边打印出来(16进制码)就是乱码3f;
请高手帮忙解决,点出问题所在。
谢谢!
extern "C" _declspec(dllexport) void func(char* type, char* Info, char* addr);
三个入参均为char*c#中调用为:
[DllImport("ClientDll.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
// [DllImport("ClientDll.dll")]
public static extern void func(string type, string Info, string addr);
我传进去的info中含中文和英文都能正常,包含韩文时dll那边打印出来(16进制码)就是乱码3f;
请高手帮忙解决,点出问题所在。
谢谢!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货