Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Getting a window instead of console.

blitznerdblitznerd Member Posts: 5
I am very new to C++, but not to programming. How do you get a normal window instead of a console? I would like the most simple way, but I would prefer not to use external libraries or other code, although I will if I have to. I found this ( http://www.relisoft.com/Win32/index.htm ) link, but it was very confusing. I got it working, but don't understand it. Is there an easier way or could you explain how that way works?

Thanks in advance!

Comments

  • stoberstober Member Posts: 9,765 ✭✭✭
    : I am very new to C++, but not to programming. How do you get a normal window instead of a console? I would like the most simple way, but I would prefer not to use external libraries or other code, although I will if I have to. I found this ( http://www.relisoft.com/Win32/index.htm ) link, but it was very confusing. I got it working, but don't understand it. Is there an easier way or could you explain how that way works?
    :
    : Thanks in advance!
    :


    gui windows under either ms-windows or *nix are very complex topics and have about a year's learning curve to understand them well. Here is another tutorial that most people recommend. It will only get you started and is not comprehensive on the topic. If you want to learn lots more than what is provided there then you will want to buy one or two books at your local book store or online at www.amazon.com. People spend years learning that stuff so don't expect to learn it overnight.


    http://www.winprog.org/tutorial/
  • tsagldtsagld Member Posts: 621
    : : I am very new to C++, but not to programming. How do you get a normal window instead of a console? I would like the most simple way, but I would prefer not to use external libraries or other code, although I will if I have to. I found this ( http://www.relisoft.com/Win32/index.htm ) link, but it was very confusing. I got it working, but don't understand it. Is there an easier way or could you explain how that way works?
    : :
    : : Thanks in advance!
    : :
    :
    :
    : gui windows under either ms-windows or *nix are very complex topics and have about a year's learning curve to understand them well. Here is another tutorial that most people recommend. It will only get you started and is not comprehensive on the topic. If you want to learn lots more than what is provided there then you will want to buy one or two books at your local book store or online at www.amazon.com. People spend years learning that stuff so don't expect to learn it overnight.
    :
    :
    : http://www.winprog.org/tutorial/

    Programming Windows-gui's in C++ isn't a simple thing, but a whole year to learn it seems very exaggerated to me.
    Once you get the concept of event-driven coding you will learn faster.

    You'll need the CreateWindowEx- and ShowWindow-api's and learn how to create and handle a messageloop.
    The CreateWindowEx-api is the most complex one, but you can use it to create windows-forms and all possible controls.

    Creating nice gui's in C++ isn't easy, that's why there are languages that make life a lot easier (at the cost of flexibility and performance usually). Visual Basic, Delphi, PowerBuilder and the .Net languages are examples of these.



    Greets,
    Eric Goldstein
    http://www.gvh-maatwerk.nl


  • stoberstober Member Posts: 9,765 ✭✭✭
    :
    : Programming Windows-gui's in C++ isn't a simple thing, but a whole year to learn it seems very exaggerated to me.
    : Once you get the concept of event-driven coding you will learn faster.
    :

    Its not just learning the basics -- most people can do that in a few days. I would not even think of writing a new windows program using only win32 api -- the time and effort required is not worth it; there are a lot of much easier ways to write those programs. Afterall, I don't have to know the first thing about engines in order to drive my car.
  • LundinLundin Member Posts: 3,711
    : Creating nice gui's in C++ isn't easy, that's why there are languages that make life a lot easier (at the cost of flexibility and performance usually). Visual Basic, Delphi, PowerBuilder and the .Net languages are examples of these.

    I get so tired of hearing this - it is just prejudices. C++ is excellent for GUI, Borland C++ Builder is the same thing as Delphi, it just uses C++ instead of Object Pascal. And Builder/Delphi are a lot better than VB and .NET imo. When they released C++ builder, it wasn't tricky to make GUIs anymore. And it has been out there for 10 years or so.
Sign In or Register to comment.