vb默认 byref vc 默认 byval
stdcall方式不能传递浮点,变通方法传递浮点变量的指针.
byte unsigned char
integer short
bool short
long int
single float
double double
//vc char *vb byval variable as String
//vc指针的指针 vb any
LPSTR * byref variable as String
//Private Declare Function wpfnDllTest Lib "dllTest.dll" (w ) As Integer 等价于 byval w as Variant
//Private Declare Function wpfnDllTest Lib "dllTest.dll" (w As Any) As Integer Any w是什么就传递什么,无类型匹配检查
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。