Hello,
I have a Win32 C++ application which works pretty well, but I don't like the GUI and I want to replace it with one designed graphically, a la Windows Forms. What is the best strategy to port my code? I tried creating a new Windows Forms C++ application and got pretty far with it, but was stymied when trying to call my unmanaged functions on a button press (if anyone knows how to do that, help would be appreciated; I googled and found a lot of admonitions about not mixing managed and unmanaged code). If I can't use Forms to add a GUI without completely rewriting the program, what's my best bet?
I have a Win32 C++ application which works pretty well, but I don't like the GUI and I want to replace it with one designed graphically, a la Windows Forms. What is the best strategy to port my code? I tried creating a new Windows Forms C++ application and got pretty far with it, but was stymied when trying to call my unmanaged functions on a button press (if anyone knows how to do that, help would be appreciated; I googled and found a lot of admonitions about not mixing managed and unmanaged code). If I can't use Forms to add a GUI without completely rewriting the program, what's my best bet?