C++.NET

Moderators: Lundin
Number of threads: 99
Number of posts: 163

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Managed wrapper for function taking variable number of arguments Posted by jyoti75 on 8 Mar 2009 at 3:28 AM
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.
Thread Tree



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.