fieldset{padding:10px;}
can’t find dll entry point OutputDebugString in kernel32我想在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也不行——解决方案——————————————————–VB code
Private Declare Sub OutputDebugString Lib "kernel32.dll" Alias "OutputDebugStringA" ( _ ByVal lpOutputString As String)世上没有绝望的处境,只有对处境绝望的人。