I need a example for the following.
C# calling the functions written in C++.
Please provide me an example made in VS2010. C# have to a "[url removed, login to view] web application". The C# will call a function that is written in C++ and pass some parameters. C++ CLI method is required because P/Invoke method is not stable enough. The C++ function can reside any where as you wish. As a separate DLL, or as a separate library, etc.
The example parameters to send from C# to C++ is, an array and a struct. C++ function will modify the array & struct and return it back to C#.
Kindly dont hesitate to ask for more clarification.
Example code: [url removed, login to view]
8 freelancers estão ofertando em média $25 para este trabalho
Hi I have done it before and have the code. I made a word addin in C# which called C++ function from a dll. If you want I can send you the code and if required describe it to you. Best Regards
Hi, basically you should create a managed wrapper for your native library. After that you may use it like any other regular assembly. Regards, Artur
I've tried something similar a long time ago, I can do this again. Though it's not gonna be pretty and If I were you - I would refrain from this approach at all.
hi! i have some experience in this problem. i can have you. By the way: this is my old article about this in codeproject: http://www.codeproject.com/Articles/27298/Dynamic-Invoke-C-DLL-function-in-C Thanks
Hi. I have done such example for myself some weeks ago and know I can do the same for you. Any way I'm serious C#.NET professional able to implement C# job you need. Thank you!