G Guest Apr 4, 2004 #1 I'm looking for a simple example for calling a c++ code written in .NET from my C# application any reference would be great Thanks, Sagiv
I'm looking for a simple example for calling a c++ code written in .NET from my C# application any reference would be great Thanks, Sagiv
G Gawel Apr 4, 2004 #2 I'm looking for a simple example for calling a c++ code written in .NET from my C# application. If you mean that your code is in managed C++ then pack it into assembly and add it to your references in C# application. Gawel
I'm looking for a simple example for calling a c++ code written in .NET from my C# application. If you mean that your code is in managed C++ then pack it into assembly and add it to your references in C# application. Gawel
S Sagiv Philipp Apr 4, 2004 #3 Thanks Gawel, but that's exactly what I do not know how to do. Could you point me to a simple example ? Thanks a lot for your reply. Sagiv.
Thanks Gawel, but that's exactly what I do not know how to do. Could you point me to a simple example ? Thanks a lot for your reply. Sagiv.
G Gawel Apr 4, 2004 #4 Thanks Gawel, but that's exactly what I do not know how to do. Could you point me to a simple example ? Click to expand... Below you find some basic solution with MC++ and C# http://www.wroclaw.mm.pl/~gawelek/MC++ANDCSharp.zip Gawel
Thanks Gawel, but that's exactly what I do not know how to do. Could you point me to a simple example ? Click to expand... Below you find some basic solution with MC++ and C# http://www.wroclaw.mm.pl/~gawelek/MC++ANDCSharp.zip Gawel
S Sagiv Philipp Apr 4, 2004 #5 Thanks a lot Gawel, your code was very efficient for me. How would I know for sure whether my code is managed or not. And if not, I guess I'd have to wrap it in order to use it from my c# app ?! -Sagiv.
Thanks a lot Gawel, your code was very efficient for me. How would I know for sure whether my code is managed or not. And if not, I guess I'd have to wrap it in order to use it from my c# app ?! -Sagiv.
G Gawel Apr 5, 2004 #6 How would I know for sure whether my code is managed or not. If you compile your code with \clr option you should get managed code. But for more information I recommend you below articles, they are great: http://www.ondotnet.com/pub/a/dotnet/2003/01/13/intromcpp.html http://www.ondotnet.com/pub/a/dotnet/2003/01/13/intromcpp.html Gawel
How would I know for sure whether my code is managed or not. If you compile your code with \clr option you should get managed code. But for more information I recommend you below articles, they are great: http://www.ondotnet.com/pub/a/dotnet/2003/01/13/intromcpp.html http://www.ondotnet.com/pub/a/dotnet/2003/01/13/intromcpp.html Gawel