我试图为P调用函数/从C++/Win32的DLL调用一个函数,但每当我把它叫做我得到以下错误: System.AccessViolationException occurred
HResult=-2147467261
Message=Attempted to read or write protected memory. This is often an indication
我收到一个错误“回调是使用此代码对垃圾收集的代理类型进行的”,但我似乎找不到解决方案。 <DllImport("winmm.dll")>
Private Shared Function timeSetEvent(delay As Integer, resolution As Integer, handler As TimerEventHandler, user As IntPtr, eventT