新海阳西街房屋出租:VB6.0执行时出现错误,请教为何?

来源:百度文库 编辑:高考问答 时间:2019/12/07 10:42:34
Private Declare Function INITCOMM Lib "C:\111.DLL" (ByVal I1 As Long, ByVal I2 As Integer, ByVal I3 As Integer) As Integer

Private Declare Function SENDSERIAL Lib "C:\111.DLL" (ByVal S1 As String, ByVal I As Integer) As Integer
Dim flag As Integer

如上是在General中的代码,运行是提示‘c:\111.dll’这个文件不存在!
我已经把这个文件copy到C:\下了,怎么还不行呢?
I = INITCOMM(9600, 26, 0)
调试的时候,提示这句话出现错误!

111.dll不要路径,如:

Private Declare Function INITCOMM Lib "111.DLL" (ByVal I1 As Long, ByVal I2 As Integer, ByVal I3 As Integer) As Integer
然后把111.dll跟EXE放一起。

代码在哪