Click here to Skip to main content
15,887,135 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Wordle 932 - 3 4 me Pin
pkfox6-Jan-24 21:40
professionalpkfox6-Jan-24 21:40 
GeneralRe: Wordle 932 Pin
GuyThiebaut6-Jan-24 21:50
professionalGuyThiebaut6-Jan-24 21:50 
GeneralRe: Wordle 932 Pin
Cp-Coder7-Jan-24 1:05
Cp-Coder7-Jan-24 1:05 
GeneralSSOTW Pin
David O'Neil6-Jan-24 11:53
professionalDavid O'Neil6-Jan-24 11:53 
Generalhow hard to rewrite a legacy software from C++ to C# in WinForm? Pin
Southmountain6-Jan-24 6:05
Southmountain6-Jan-24 6:05 
GeneralRe: how hard to rewrite a legacy software from C++ to C#? Pin
Kenneth Haugland6-Jan-24 6:37
mvaKenneth Haugland6-Jan-24 6:37 
GeneralRe: how hard to rewrite a legacy software from C++ to C#? Pin
Southmountain6-Jan-24 9:47
Southmountain6-Jan-24 9:47 
GeneralRe: how hard to rewrite a legacy software from C++ to C#? Pin
honey the codewitch6-Jan-24 6:45
mvahoney the codewitch6-Jan-24 6:45 
It varies widely depending on the project.

For user interface stuff (at least assuming windows) if you were using like, MFC before, you're basically going to need to rewrite that part using the original code as a reference.

For algorithmic stuff it depends. If you're doing pointer ops all over the place that will be difficult to port as you need to change it to indexing into arrays (typically). Otherwise, if you're using things like vector and map they have direct corollaries in C# so that kind of thing is easier.

Just remember structs are on the stack and classes are on the heap in C#. That has a lot of different ramifications, such as changing how they are passed to functions (byval instead of byref). Be careful when porting that kind of thing from C++ which makes little distinction between classes and structs.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix

GeneralRe: how hard to rewrite a legacy software from C++ to C#? Pin
Richard Andrew x646-Jan-24 7:22
professionalRichard Andrew x646-Jan-24 7:22 
GeneralRe: how hard to rewrite a legacy software from C++ to C#? Pin
honey the codewitch6-Jan-24 7:24
mvahoney the codewitch6-Jan-24 7:24 
GeneralRe: how hard to rewrite a legacy software from C++ to C#? Pin
Southmountain6-Jan-24 9:48
Southmountain6-Jan-24 9:48 
GeneralRe: how hard to rewrite a legacy software from C++ to C#? Pin
Jo_vb.net6-Jan-24 6:54
mvaJo_vb.net6-Jan-24 6:54 
GeneralRe: how hard to rewrite a legacy software from C++ to C#? Pin
Southmountain6-Jan-24 9:48
Southmountain6-Jan-24 9:48 
GeneralRe: how hard to rewrite a legacy software from C++ to C#? Pin
RedDk6-Jan-24 8:58
RedDk6-Jan-24 8:58 
GeneralRe: how hard to rewrite a legacy software from C++ to C#? Pin
Richard Andrew x646-Jan-24 9:09
professionalRichard Andrew x646-Jan-24 9:09 
GeneralRe: how hard to rewrite a legacy software from C++ to C#? Pin
PIEBALDconsult6-Jan-24 9:24
mvePIEBALDconsult6-Jan-24 9:24 
GeneralRe: how hard to rewrite a legacy software from C++ to C#? Pin
obermd6-Jan-24 10:20
obermd6-Jan-24 10:20 
GeneralRe: how hard to rewrite a legacy software from C++ to C#? Pin
RedDk6-Jan-24 10:25
RedDk6-Jan-24 10:25 
GeneralRe: how hard to rewrite a legacy software from C++ to C#? Pin
Nelek6-Jan-24 11:46
protectorNelek6-Jan-24 11:46 
GeneralRe: how hard to rewrite a legacy software from C++ to C#? Pin
obermd8-Jan-24 11:31
obermd8-Jan-24 11:31 
GeneralRe: how hard to rewrite a legacy software from C++ to C#? Pin
Nelek8-Jan-24 11:47
protectorNelek8-Jan-24 11:47 
GeneralRe: how hard to rewrite a legacy software from C++ to C#? Pin
jschell8-Jan-24 6:37
jschell8-Jan-24 6:37 
GeneralRe: how hard to rewrite a legacy software from C++ to C# in WinForm? Pin
Bruno van Dooren6-Jan-24 23:40
mvaBruno van Dooren6-Jan-24 23:40 
GeneralRe: how hard to rewrite a legacy software from C++ to C# in WinForm? Pin
Gary R. Wheeler7-Jan-24 4:36
Gary R. Wheeler7-Jan-24 4:36 
GeneralRe: how hard to rewrite a legacy software from C++ to C# in WinForm? Pin
MSBassSinger8-Jan-24 2:44
professionalMSBassSinger8-Jan-24 2:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.