函数命名,C#中byte在pb中的转化
C# 实例
函数
[DllImport("termb.dll", EntryPoint = "GetFPDate", CharSet = CharSet.Ansi, SetLastError = false, CallingConvention = CallingConvention.StdCall)]
public static extern int GetFPDate(ref byte strTmp, ref int strLen);
byte[] ICFeatureData;
ICFeatureData = new byte[1024];
GetFPDate(ref ICFeatureData[0], ref length);
这些代码在pb中如何实现。以下是我的转换
Function Integer GetFPDate(Ref String strTmp,Ref Long strLen) Library 'termb.dll' Alias For "GetFPDate;Ansi"
string ls_str
Long Length
ls_str = Space(1024)
GetFPDateCS(ls_str ,Length)
获取值不正确,去大神解决