依照这个dll的接口文档描述,它这个接口的入参是这样的:
long OltpTransData(unsigned long msgType,unsigned long packageType,unsigned long packageLength,char *str,LPTSTR com);
c#代码中的引入,我是这么写的:
[DllImport("OltpTransIc1701.dll", SetLastError = false)]
public static extern long OltpTransData(long msgType, long packageType, long packageLength, ref string str, [MarshalAs(UnmanagedType.LPTStr)] string com);
请问这么转换入参类型是否正确?