[HELP]Creating a windows GUI

Discussion in '3DS - Homebrew Development and Emulators' started by 100pcrack, Nov 7, 2015.

  1. 100pcrack
    OP

    100pcrack GBAtemp Advanced Fan

    Member
    197
    61
    Sep 18, 2015
    Hackin'
    Hello Gbatemp:
    I am currently working on a windows 3ds utility (hans shorcut generator).
    When I was making it I realized that I knowed how to create a cmd file and convert it to exe but I didn't knowed how to make a GUI like other 3ds utilities (romfs extractor/builder, Sky Army Knife, No ban No sky...).
    I know that I need Visual Studio but, how do I use it? Does it work like programming .bat files?
    I know batch, C and a bit of C++
    I know that it isn't easy, so stop saying it!
    Can anyone link me to a cool GUI tutorial?
    Thanks!
    《Thread Changelog》
    Warning: Spoilers inside!
     
    Last edited by 100pcrack, Nov 7, 2015
  2. 100pcrack
    OP

    100pcrack GBAtemp Advanced Fan

    Member
    197
    61
    Sep 18, 2015
    Hackin'
    Reserved
     
  3. fafaffy

    fafaffy GBAtemp Fan

    Member
    331
    160
    Sep 1, 2012
    United States
  4. 100pcrack
    OP

    100pcrack GBAtemp Advanced Fan

    Member
    197
    61
    Sep 18, 2015
    Hackin'
  5. Minnow

    Minnow GBAtemp Fan

    Member
    462
    710
    Oct 5, 2015
    Canada
    it's not that simple. it really isn't.
     
  6. MichiS97

    MichiS97 "Leftist snowflake milennial"

    Member
    GBAtemp Patron
    MichiS97 is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    1,376
    777
    Jun 14, 2011
    Germany
    Munich
    Programming a GUI is about as different from writing a batch file as it gets
     
    loco365 likes this.
  7. fafaffy

    fafaffy GBAtemp Fan

    Member
    331
    160
    Sep 1, 2012
    United States
    No, I would begin with youtube tutorials with basic things, like clicking buttons which change the color of a form. Anything semi-advanced, which it seems like you're after, is way beyond your current capabilities, and I would not attempt to start off with this. It's simply too much and will probably be too error-prone. Work your way up.
     
  8. MichiS97

    MichiS97 "Leftist snowflake milennial"

    Member
    GBAtemp Patron
    MichiS97 is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    1,376
    777
    Jun 14, 2011
    Germany
    Munich
    Btw, Qt is a really nice way to make a GUI for C++ programs
     
  9. fafaffy

    fafaffy GBAtemp Fan

    Member
    331
    160
    Sep 1, 2012
    United States
    Honestly, if his idea of programming is batch, then I would probably tell him to stay the fuck away from C++. I would focus on something easier and more managed, like VB.NET (or even C# if your ballsy enough).
     
  10. Arubaro

    Arubaro Soulspace Guardian

    Member
    1,669
    470
    Sep 4, 2015
  11. 100pcrack
    OP

    100pcrack GBAtemp Advanced Fan

    Member
    197
    61
    Sep 18, 2015
    Hackin'
    Please read again the thread!
     
  12. fafaffy

    fafaffy GBAtemp Fan

    Member
    331
    160
    Sep 1, 2012
    United States
    You say you know a little C/C++.

    How much is a little? Depending on how much you know would determine what kind of tutorial you're best off watching.
     
  13. Arubaro

    Arubaro Soulspace Guardian

    Member
    1,669
    470
    Sep 4, 2015
    You would need to make a window with several text fields and buttons, and then make the code to retrieve the information you entered on the fields and pass that information as parameters to the .exe you're making the GUI.

    I think the easiest way would be yo install Visual studio C#, that has some "drag and drop" features to make the form with the input fields you're looking for
     
  14. 100pcrack
    OP

    100pcrack GBAtemp Advanced Fan

    Member
    197
    61
    Sep 18, 2015
    Hackin'
    Can you link me to the program and to a few tutorials?
    I am on win7 x32 (x86)
     
  15. fafaffy

    fafaffy GBAtemp Fan

    Member
    331
    160
    Sep 1, 2012
    United States
    I can personally recommend this one, it's pretty decent.
     
    DesuIsSparta likes this.
  16. Gocario

    Gocario GBAFail'd

    Member
    640
    562
    Sep 5, 2015
    France
    Bourg Palette
    Just "WinForms"
     
  17. Arubaro

    Arubaro Soulspace Guardian

    Member
    1,669
    470
    Sep 4, 2015
    Google "visual studio express", I think those are free versions
     
  18. doctorgoat

    doctorgoat GBAtemp Advanced Fan

    Member
    624
    234
    Jun 3, 2015
    United States
    C# Winforms is about as easy as it gets. Just learn how events work and you're pretty much done.
     
  19. Marko76

    Marko76 GBAtemp Psycho!

    Member
    3,723
    2,099
    Aug 19, 2015
    United Kingdom
    Clydebank
    You NEED to stop reserving the second slot in every thread you make i know i have already said it bit please stop doing it. It's pointless any info that is new can just be edited into your first post.
     
  20. spoonm

    spoonm Can count to 3.

    Member
    174
    84
    May 20, 2015
    Brazil
    On-topic:
    You should follow their advice. Work your way up into creating windows, then maybe think of your own GUI solution. Forget batch scripting as that is pretty different from C/C++ and C# and can't help you much on that end(AFAIK).

    Google is your best friend, here are a few links on queries such as "creating windows in C", "using Qt with C++" and "win32 C++ windows":

    The resources are out there. Spend some time reading wikis and tutorials and you'll get the hang of it. To reiterate what others said: creating programs is not simple. You'll have to invest time on it, so be patient and keep up that will to learn.

    Off-topic:
    This belongs in the programming section, not homebrew development, as it isn't about homebrew, but rather development of a conventional PC utility.