Thread: Windows Programming??

  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    50

    Windows Programming??

    Hi!
    I am still a beginner at c++, but I would like to know the advantage of Windows programming. I am a bit tired of all those dos applications and, since most programs use windows, would like to know if I should start programming windows, or first practise a bit more on dos applications.(they seem to be much easier)

    Someone please give me some advice. Thx in advance

  2. #2
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    You could always try a search and read one of the many discussions on this??

  4. #4
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    It depends. Are you competent with the language?

    Writing code for a console may be a little dull, but a console is a lot more forgiving when it comes to bad code. You can easily add a cout or printf to see where you are going wrong. A typical console app need only be a few lines long.

    A Windows GUI app will always be a much bigger program, typically 100's of lines to do just the simplest things, and it generally fails by simply not working. You have to be a bit more sophisticated with your debugging.

    The reason people learn languages in console app's is stated above.

    Here is a "Hello World" console app...
    Code:
    #include <iostream>;
    using namespace std;
    int main()
    {
        cout << "Hello World" << endl;
        return 0;
    }
    ... attached is a Win32 GUI Hello World, your call.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  5. #5
    Student Forever! bookworm's Avatar
    Join Date
    Apr 2003
    Posts
    132
    Well,if u are well versed with c++ capabilities and its language features,then u can step into Windows programming.U always need to know how to create console programs before learning Win programming.They certainly don't look RAD or reduce the predicament of the user,but they help u in understanding the power of the language.
    But when u do enter Windows programming,be sure u are a part of the .net bandwagon.
    Long Live The .Net Bandwagon

  6. #6
    Registered User
    Join Date
    Jun 2003
    Posts
    245
    If you want C++ without all the complexities of Windows, then try something like Borland C++ Builder. This will let you create Windows programs almost as fast as console ones. Once you get more experienced, you can ask the compiler to do less and less work for you, but most people find it works just fine as it is and they don't need to be involved that much with Windows anyway.

    Only bad thing about it is that Builder is not free. Still, the standard version is still cheaper than MS Visual C++.

  7. #7
    Registered User
    Join Date
    Apr 2003
    Posts
    50

    Reply

    Thx alot for the good advice!!
    The link Xsquared posted is great, I will make good use of it thx!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Windows 98/2000 programming in Windows XP
    By Bill83 in forum Windows Programming
    Replies: 3
    Last Post: 07-22-2005, 02:16 PM
  2. Dialog Box Problems
    By Morgul in forum Windows Programming
    Replies: 21
    Last Post: 05-31-2005, 05:48 PM
  3. dual boot Win XP, win 2000
    By Micko in forum Tech Board
    Replies: 6
    Last Post: 05-30-2005, 02:55 PM
  4. SDL and Windows
    By nickname_changed in forum Windows Programming
    Replies: 14
    Last Post: 10-24-2003, 12:19 AM
  5. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM