I have added a powerbuilder dll in .net through Add Ref. While creating instance of the class and referencing it I ma getting the beloew error.
"PInvokeStackImbalance was detected
Message: A call to PInvoke function 'Sybase.PowerBuilder.Common!Win32.User::towctrans' 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."
Please suggest.
Shivendra