How do I port a .NET program?

Would it be better to port a Microsoft.NET program to a standalone system by modifying existing code or just using existing code as a reference? In standalone mode, I mean that the .NET Framework (or any other) will not need to be installed on the machine. Preferably, I would prefer the option that takes the least time, even if it is a little buggy.

0
source share
4 answers

It depends on how extensive the use of .NET is in existing code. Some managed C ++ look very similar to native C ++ - in this case, you better replace the .NET parts with equivalent native C ++ libraries. On the other hand, some managed C ++ use a lot of .NET isms, such as ^ references throughout the code, in which case rewriting is probably ok.

+3
source

If you mean "run without the .NET Framework" ... this is not a good idea and is not really supported. But you can try the options that John lists here: Do I need to set a frame to run my .NET application?

+2
source

I know that you mentioned that you do not use any framework, but, for the sake of your sanity, I would suggest something like what used to be Borland VCL (I have not used it for a while, so I'm not sure what is it now called). In order not to use a well-designed structure when there are options available ... well, just don't call it a huge waste of resources. At least for the standard Windows program.

0
source

How about using your own image generator?

http://msdn.microsoft.com/en-us/library/6t9t5wcf(VS.80).aspx

-1
source

Source: https://habr.com/ru/post/1286787/


All Articles