E
E
Evgeny Semashko2020-06-12 12:00:27
Windows
Evgeny Semashko, 2020-06-12 12:00:27

Is it possible to port a C# project to C++/CLI?

Is it possible to migrate a WinForms project from C# to C++/CLI. In theory, it should work, since they are located on the same .Net platform, based on Troelsen's book, you can run projects written in C# in languages ​​​​that work with the .Net platform.

I was looking for ways to port, but on msdn only C ++ / CLI can be transferred to . Net Core

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Korotenko, 2020-06-12
@evgenysemashko

Exactly there it is written what C++ / CLI is used
for. To work with old code and to bypass some limitations of higher-level languages.
Write the resource-intensive part of the code on cli, write everything else, including the interface, in C#.
This is the most correct way.

R
rPman, 2020-06-12
@rPman

Transferring applications between 'languages' often creates problems other than languages ​​and syntax, c # and c ++ are almost identical, but due to the libraries and frameworks used, or rather the lack of those that .net has but not for c ++, in including multithreading, familiar work with lists / iterators, etc.
If you have the most boring approach to developing the required piece of code, for example, you do not use external libraries and modern syntactic sugar, then you can even port your code under opencl or nvidia cuda without much movement.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question