any tips to share on converting Win32 demo application to C#?
-
I have a small Win32 app demo to show some algorithms on drawing 2D geometry. I plan to convert or rewrite it in C# because I like to use this algorithm in my WinForm app. any tips to share? it seems a little daunting to me...
diligent hands rule....
-
I have a small Win32 app demo to show some algorithms on drawing 2D geometry. I plan to convert or rewrite it in C# because I like to use this algorithm in my WinForm app. any tips to share? it seems a little daunting to me...
diligent hands rule....
-
I have a small Win32 app demo to show some algorithms on drawing 2D geometry. I plan to convert or rewrite it in C# because I like to use this algorithm in my WinForm app. any tips to share? it seems a little daunting to me...
diligent hands rule....
-
I concur. If you must redo this demo as a C# application, write it from the ground up in C#. You'll end up with a more efficient application than if you do a straight conversion.
yes, I plan to go through the code and understand the logic, then rewrite it...
diligent hands rule....
-
I guess (I'm not an expert) going from
Win32
toWindows Forms
is far easier than the opposite.GDI+
is rather user-friendly, in my opinion."In testa che avete, Signor di Ceprano?" -- Rigoletto
I second you. C++ GDI+ and C# GDI+ are very similar, one-to-one function replacement. I ported my [Outline Text](https://www.codeproject.com/Articles/42529/Outline-Text) from C++ to C# in one day.
-
yes, I plan to go through the code and understand the logic, then rewrite it...
diligent hands rule....
What's it written in now? Or, do you wish this to be a web app and hence C#?
-
I have a small Win32 app demo to show some algorithms on drawing 2D geometry. I plan to convert or rewrite it in C# because I like to use this algorithm in my WinForm app. any tips to share? it seems a little daunting to me...
diligent hands rule....
Depends on the language the original was written in as well as how well-structured it is. I would go about this by first and foremost separating business logic from plumbing. Then, by mapping the APIs used in the business logic part to .NET parts. While P/Invoking them is certainly feasible, that's only advised if the goal is defined as sticking as close as possible to the original and/or there's no corresponding .NET APIs.
-
I have a small Win32 app demo to show some algorithms on drawing 2D geometry. I plan to convert or rewrite it in C# because I like to use this algorithm in my WinForm app. any tips to share? it seems a little daunting to me...
diligent hands rule....
-
I have a small Win32 app demo to show some algorithms on drawing 2D geometry. I plan to convert or rewrite it in C# because I like to use this algorithm in my WinForm app. any tips to share? it seems a little daunting to me...
diligent hands rule....
-
Win32, written in C++.
diligent hands rule....
-
Depends on the language the original was written in as well as how well-structured it is. I would go about this by first and foremost separating business logic from plumbing. Then, by mapping the APIs used in the business logic part to .NET parts. While P/Invoking them is certainly feasible, that's only advised if the goal is defined as sticking as close as possible to the original and/or there's no corresponding .NET APIs.
thanks for you great experience!
diligent hands rule....
-
What's it written in now? Or, do you wish this to be a web app and hence C#?
Win32, written in C++. would like to convert it into C# WinApp to play around with the algorithms in it,,,
diligent hands rule....