In Progress

C# calls C++ function through CLI

Dear all,

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 "ASP.NET 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]

Skills: C# Programming, C++ Programming

See more: call function, struct c programming, programming blogs, c sharp library, c programming struct, cplusplus struct, cplusplus array, array in c sharp programming, array in c programming, c c++ c# c# c sharp, the c, provide calls, CLI , c++ p, c p, c or c, vs2010, cli web, modify dll, vs2010 web, need modify dll, modify dll return, archive asp, cli programming, android function calls

About the Employer:
( 108 reviews ) United States, Korea, Republic of

Project ID: #5088076

Awarded to:


Hello. I'm skilled with C++/CLI and I would be able to complete your project in short time. .....

$23 USD in 1 day
(282 Reviews)

8 freelancers are bidding on average $25 for this job


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

$35 USD in 1 day
(12 Reviews)

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

$30 USD in 1 day
(11 Reviews)

hi, I can help you ------------------------------------------------------------------------------------------------------------------------

$25 USD in 1 day
(3 Reviews)

Hi... Would like to give an idea, use a socket to transfer data, one if my friend use that method to communicate between c# and c++

$25 USD in 3 days
(2 Reviews)

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.

$15 USD in 1 day
(0 Reviews)

hi! i have some experience in this problem. i can have you. By the way: this is my old article about this in codeproject: [url removed, login to view] Thanks

$20 USD in 1 day
(0 Reviews)

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!

$25 USD in 1 day
(0 Reviews)