关于dll返回字符串在C#下调用的问题
c++dll导出函数的原型:
extern "C " __declspec(dllexport) void say(void);
extern "C " __declspec(dllexport) LPTSTR Picker();
我开始这样在c#中调用
[DllImport( "..\\mfcdll\\mfcdll.dll ", EntryPoint = "say ")]
public static extern void say();
[DllImport( "..\\mfcdll\\mfcdll.dll ", EntryPoint = "Picker ")]
public static extern string Picker();
.........