Hi!
I'm using the SendMessage function in the code. But the following error is occuring.
"A call to PInvoke function 'XXXXXXX::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."
The function declaration is like this:
Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As String) As Long
The function is called like this:
Index = SendMessage(ctrl.Handle, CB_FINDSTRING, -1, ctrl.Text)
Where Index is 'Long' type variable and ctrl.Handle refers to a combo box handler.
Any pointers/Suggestions would be very helpful.
TIA
CGK