Managed wrapper for function taking variable number of arguments - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Managed wrapper for function taking variable number of arguments

jyoti75jyoti75 Posts: 1Member
I have written a managed wrapper for native C++ class. One of the function in native C++ was taking variable number of arguments. I created a managed wrapper for it using [ParamArray] attribute. But still I get the error Run-Time check Error #0. The value of ESP was not saved across function call. This might be because of the different calling convention. I read thet variable number of arguments uses _cdecl and In the managed wrapper before the api I put __cdecl but still get the same error.any solution on how to fix that.
Sign In or Register to comment.