c++代码如下:
char* APPdd(char * pdlq)
{
char s[500] = { 0 };
sprintf(s, "%s", pdlq);
char* dsa = s;
return dsa;
}
c# 需要 传入char* 参数到C++里然后在返回 char*到C#里 在数据转换过程中不知道用什么方法比较好 求解
[DLLImport("ABC.DLL",EntryPoint="Test",CallingConvention=CallingConvention.StdCall)]
public static extern IntPtrAPPdd(类型应该怎么操作);