how to add C++ code in CSharp Programming
-
Hi Can anyone tell me how to embbeded C++ code in CSharp in application? Can anyone help me in this matter. Hoping for a favorable reply From Phijo Mathew Philip. :)
-
Hi Can anyone tell me how to embbeded C++ code in CSharp in application? Can anyone help me in this matter. Hoping for a favorable reply From Phijo Mathew Philip. :)
-
Hi Can anyone tell me how to embbeded C++ code in CSharp in application? Can anyone help me in this matter. Hoping for a favorable reply From Phijo Mathew Philip. :)
Hello C++ is called unmanaged code, while C# is managed. They are two different languages despite the similarity in names. C++ compile to machine language while C# compile to IL language then to machine language at runtime. That's among other differences. Whatever you want to do in C++ -excpet very few cases like inline assembly-, you still cane do with C#. For example: 1- You can make P/Invoke callse to old C++ libraries and Windows API functions 2- You can use pointers as Erfi showed you 3- You can include a C++ dll project in your solution and reference to it. Write your C++ code in that library. 4- you can reference to COM objects written in C++.
Regards:rose: