用delphi编写dll时,为了能让c++调用,所以涉及字符串的地方都必须用pchar,而不能用string.PChars are, with short strings, one of the original Object Pascal string types. They were created primarily as a C language and Windows API compatibility type.
C++ 中是DirectCommunicate(ID: integer;char *s, char*t) 最後一個*T是傳回指標我在DELPHI中 DirectCommunicate(ID: integer;s:pchar,var t:pchar)可是不行,不能傳回值:(,只傳回空格,可是就算我寫錯,也應傳送錯誤代碼啊
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货