c#中string型和c++string型的区别
在c#中调用c++的dll,在c#中向里面传入string型参数,结果进入dll调试发现穿进去的字符串变了,咋回事?
? [DllImport("PEKS.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)]
? static extern void Enc(string plain);
------解决方案--------------------
http://blog.163.com/xiaozhi797@126/blog/static/62440288201231341344512/
------解决方案--------------------
非托管的C++里面就不存在string,谈何区别?