我想在VBA中调用OutputDebugString API函数,以便在DebugView中输出一些调试信息。但使用时提示“can't find dll entry point OutputDebugString in kernel32”。请问问题在哪里?
我的声明如下:Private Declare Sub OutputDebugString Lib "kernel32" (ByVal lpOutputString As String)
使用如下:OutputDebugString "OutputDebugString"
我在类型库中增加了kernel32.dll也不行
我的声明如下:Private Declare Sub OutputDebugString Lib "kernel32" (ByVal lpOutputString As String)
使用如下:OutputDebugString "OutputDebugString"
我在类型库中增加了kernel32.dll也不行
ByVal lpOutputString As String)
装个 ApiViewer 自己查一下,早就解决了。