Calling C++ .NET project from C# project
-
;) Hello everyone, I need to call a C++ .NET project from a C# project. Is it possible and if yes, how to go about doing it? Your help will be greatly appreciated. Thanks alot! :) min
What do you mean by calling C++ NET project? Best regards, Paul. Jesus Christ is LOVE! Please tell somebody.
-
What do you mean by calling C++ NET project? Best regards, Paul. Jesus Christ is LOVE! Please tell somebody.
-
I am using the Visual .NET studio to do the system .. I got this C++ project and C# project in the visual studio. I need to call the classes written in the c++ project from the C# project. thanks min
shimin wrote: I need to call the classes written in the c++ project from the C# project. Another chance for me to push my latest article (this actually does what you are asking): Cross Language Web Service Implementation[^]
Nick Parker
You see the Standards change. - Fellow co-worker
-
shimin wrote: I need to call the classes written in the c++ project from the C# project. Another chance for me to push my latest article (this actually does what you are asking): Cross Language Web Service Implementation[^]
Nick Parker
You see the Standards change. - Fellow co-worker
-
I am using the Visual .NET studio to do the system .. I got this C++ project and C# project in the visual studio. I need to call the classes written in the c++ project from the C# project. thanks min
Is your C++ project written in MC++ or pure C++? If in MC++, then you do not have any problem, just compile the MC++ project into assembly and use it like any other .NET dll. Make sure your MC++ classes are marked as "public _gc..." Best regards, Paul. Jesus Christ is LOVE! Please tell somebody.
-
Is your C++ project written in MC++ or pure C++? If in MC++, then you do not have any problem, just compile the MC++ project into assembly and use it like any other .NET dll. Make sure your MC++ classes are marked as "public _gc..." Best regards, Paul. Jesus Christ is LOVE! Please tell somebody.
-
the C++ is visual C++ , can i still do what you say? and how to compilt the project into an assembly? thanks alot for your help min
You will have to study the .NET system a bit more. Visual C++ supports the normal C++ and the Managed Extensions to C++ (MC++). The MC++ is designed for .NET programming and the normal C++ for other systems. You cannot call the normal C++ from C# or VB.NET. But you can call MC++ classes from C# or VB.NET. Again, the question is which are you using C++ or MC++? Best regards, Paul. Jesus Christ is LOVE! Please tell somebody.
-
You will have to study the .NET system a bit more. Visual C++ supports the normal C++ and the Managed Extensions to C++ (MC++). The MC++ is designed for .NET programming and the normal C++ for other systems. You cannot call the normal C++ from C# or VB.NET. But you can call MC++ classes from C# or VB.NET. Again, the question is which are you using C++ or MC++? Best regards, Paul. Jesus Christ is LOVE! Please tell somebody.
-
I am really sorry that I know this much only. How do I know whether it is MC++ or C++? Cos I got this program from a Phd student and he is not available for me to query. thanks min
MC++ classes are marked with "__gc". Any C++ class which is not marked with "__gc" are normal C++ classes. A simple MC++ class is as follows:
public __gc Test
{
Test() {}};
It is therefore very easy to identify the MC++ classes. Best regards, Paul. Jesus Christ is LOVE! Please tell somebody.