vb中调用dll的问题。

2024-12-03 07:47:43
推荐回答(2个)
回答1:

声明:
Declare Sub Get Lib "send.dll" (ByVal name As String,byval num As Integer)
Declare Sub Send Lib "send.dll" (ByVal buffer As String,ByVal maxbuf as Integer)
Declare Sub Print_ Lib "send.dll" Alias "Print" (ByVal num As Integer,ByVal printname As String, ByVal name As String)'由于 Print 是 VB 关键字,不能用,就用了 Print_ 来代替

回答2:

引用后按照api函数的声明方法声明就行了