- Код: Выделить всё
Declare Auto Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Integer, ByVal lParam As Long) As Long
......
t = SendMessage(lCurHwnd, &H100, &H1B, &H10001)
.....
Однако при ее выполнении идет реплика:
A call to PInvoke function 'ASControl!ASControl.STP::SendMessage' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.
Как это лечится?