Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I\'m currently programming Java, I have played around with C++ before, but I hav

ID: 655499 • Letter: I

Question

I'm currently programming Java, I have played around with C++ before, but I have never touched GUI as I feel "cheat-like" when using its drag and drop system. I feel good and enjoy programming my own GUI like I do in Java, it feels much more rewarding.

Is there any way I can program the GUI for C#/C++ like in Java, without the drag and drop system, and if so could someone possibly recommend me a tutorial (A lot of the tutorials are using the drag and drop system)?

So far I have tried researching this and really can't find much explaining how I would do it.

Explanation / Answer

For C# winforms, I found this little tutorial: http://zetcode.com/gui/csharpwinforms/. It's mono-centric, so it uses the unix philosophy that programmers are actually capable of writing code. It should be enough to teach you the basic architecture - for more complex things you can use the MSDN Winforms documentation.

As for C++ - stay away from WinAPI and from MFC! They are nothing like the orderly component hierarchy that are Winforms, WPF, SWT, Swing or even old AWT! You'll only find there a messy swap of Hungarianly notated, macro configured, manually registered low level components with weird names and poor documentation. Even if you prefer to write the GUI code yourself - if you happen to be forced to use the C++ native windows windowing libraries you should make an exception and stick with the GUI builders. That's the only way to preserve your sanity!

Or - try a third party library...

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote