L
Luca
Hi everyone,
We have a dll component developed in C# and used by the other projects (exe)
written in C#.
This component has been tested and proved to be very robust component and so
we are going to re-use it in another application (very large code base)
which has been already written in unmanaged C++.
What is the best strategy between the following two options:
1. Write a managed C++ wrapper around the C# component and use that wrapper
in our unmanaged C++ project.
2. Port the C# component completely to an unmanaged C++ component and then
use it in our unmanaged C++ project.
The main advantage of option 1 is that it seems much quicker and we can also
benefit from .Net framework library without having to re invent the wheel or
use other 3rd party libraries.
The main advantage of option 2 is that we are not going to get involved in
the potential problems involved in mixing managed and unmanaged codes.
Does anyone have any other ideas (maybe option 3 ...) or see another pros
and cons in going with either option 1 or option 2?
Any help would be appreciated
Luca.
We have a dll component developed in C# and used by the other projects (exe)
written in C#.
This component has been tested and proved to be very robust component and so
we are going to re-use it in another application (very large code base)
which has been already written in unmanaged C++.
What is the best strategy between the following two options:
1. Write a managed C++ wrapper around the C# component and use that wrapper
in our unmanaged C++ project.
2. Port the C# component completely to an unmanaged C++ component and then
use it in our unmanaged C++ project.
The main advantage of option 1 is that it seems much quicker and we can also
benefit from .Net framework library without having to re invent the wheel or
use other 3rd party libraries.
The main advantage of option 2 is that we are not going to get involved in
the potential problems involved in mixing managed and unmanaged codes.
Does anyone have any other ideas (maybe option 3 ...) or see another pros
and cons in going with either option 1 or option 2?
Any help would be appreciated
Luca.