用C写的
int WINAPI Sig_StartDial(WORD wChNo,char* DialNum,char* PreDialNum,WORD wMode);在VB中这样调用可以吗?
dim  strTelNumber="32548741"
 Call Sig_StartDial(i, strTelNumber, "", 0)
朋友们帮看一下,谢谢!

解决方案 »

  1.   

    Declare Function Sig_StartDial Lib "youname.dll" (ByVal wChNo As string,byRef DialNum as string,byRef PreDialNum as string,ByVal wMode as string) As Integer
      

  2.   

    前两天才用过类似的,字符串不用ByRef而且WORD 对应于 IntegerDeclare Function Sig_StartDial Lib "youname.dll" (ByVal wChNo As Integer,ByVal DialNum as string,ByVal PreDialNum as string,ByVal wMode as Integer) As Integer