在Modules中声明了API函数:
Declare Function ReadFile Lib "kernel32" Alias "ReadFileCOM" (ByVal hFile As Long, lpBuffer As Any, ByVal nNumberOfBytesToRead As Long, lpNumberOfBytesRead As Long, ByVal lpOverlapped As Long) As Long
在Form窗体中如下调用时
Dim retval As Long
retval = ReadFileCOM(ComNum, ByVal Buffer, 255, RetBytes, 0)
出错,Sub Or Function not denied!请问是什么原因啊?
Declare Function ReadFile Lib "kernel32" Alias "ReadFileCOM" (ByVal hFile As Long, lpBuffer As Any, ByVal nNumberOfBytesToRead As Long, lpNumberOfBytesRead As Long, ByVal lpOverlapped As Long) As Long
在Form窗体中如下调用时
Dim retval As Long
retval = ReadFileCOM(ComNum, ByVal Buffer, 255, RetBytes, 0)
出错,Sub Or Function not denied!请问是什么原因啊?
Can't find DLL entry point ReadFile in kernel32.
请问是什么问题!
只用readfile