access 2000 vba Declare Function AnsiPrev Lib "USER32"
Declare Function AnsiPrev Lib "USER" (ByVal lpchStart As String, ByVal lpchCurrentChar As String) As Long
原先是这样,提示错误无法找到USER ,之后我改成了 USER32 ,还是报错,提示类型不一致
求高手解答
[解决办法]
首先,没用过这个WindowsAPI函数,但从你贴出来的代码看,这里面的两个参数应该两个指针。
而在VB里面没有指针这个类型,所以你试试这样声明看可否:
Declare Function AnsiPrev Lib "USER32" (ByRef lpchStart As String, ByRef lpchCurrentChar As String) As Long