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是什么就傳遞什么,無類型匹配檢查
本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請
點擊舉報。