| Sign In/My Account | View Cart |
| Article: |
Intro to Managed C++, Part 2: Mixing Managed and Unmanaged Code | |
| Subject: | Why C#? | |
| Date: | 2003-03-05 14:34:52 | |
| From: | anonymous2 | |
| In your article you suggest more than once the idea of porting to C#. Why? Why not just leave everything in managed/unmanaged C++, or even just managed C++? What is with the emphasis on C# everywhere? | ||
Showing messages 1 through 2 of 2.
[DllImport("CFS01.dll", CallingConvention = CallingConvention.Cdecl)]
private static extern MyClass unmanagedMethod(float x, float y);
Also, previous to Everett, there was no forms designer in VS.NET so it made sense to "port" the C++ code to managed and then use C# to quickly write up the UI because of its WinForms Visual Designer and then call from it to the MC++ code.
Its not me thats pushing C#. Its Microsoft.