Gui

This is a discussion on Gui within the C++ Programming forums, part of the General Programming Boards category; Do the tutorials here even teach gui?????? in most tutorials i see no explanation of GUI...

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    22

    Gui

    Do the tutorials here even teach gui?????? in most tutorials i see no explanation of GUI
    Laugh

  2. #2
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    because gui is not a feature of C/C++. It is OS specific.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  3. #3
    Registered User
    Join Date
    Sep 2002
    Posts
    22
    So how would you incorporate gui with c++????????????
    Laugh

  4. #4
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    either by including machine specific assembly code for graphics output or by using a given API. Win32 API for instance.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  5. #5
    Registered User
    Join Date
    Sep 2002
    Posts
    22
    Do you do gui??????????????????????????????????
    Laugh

  6. #6
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    Get Chartles Petzold's book "Programming Windows". (If you're using MS Windows.)

    But, learn C++ first! The "Hello World" program for windows is two or three pages long!!! And, most of the program won't be recognizable if you don't know anything about the Windows API (Application Program Interface). Most of the stuff in Petzold's "Hello Windows" program is Windows-specific structures and calls to functions defined in windows.h

    Because of the programming overhead, Windows programming is MUCH harder to learn than text-based programming. I mean that after a few chapters of "C++ in 21 days", you are really starting to learn something. After a few chapters of "Programming Windows" you are scratching your head and re-reading... and reading...

  7. #7
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Originally posted by DougDbug
    The "Hello World" program for windows is two or three pages long!!!
    Is that so?
    Code:
    #include <windows.h>
    
    int WINAPI WinMain(HINSTANCE CurInst, HINSTANCE PrevInst, LPSTR Args, int Show)
    {
       MessageBox(NULL, "Hello world", "My first program", MB_OK);
    }
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  8. #8
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    Originally posted by laughman
    Do you do gui??????????????????????????????????
    LOL! you're a character. yeah, I gui I guess. Win32 API professional!
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  9. #9
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    Yeah Megos, Petzold's first example is quite long. I don't have the book with me, and I don't remember the details but it's not just a message box, I think it has scroll bars and can be re-sized etc.

    I WISH he would have started out with a two line program, 'cause it was really overwhelming!

    But the Petzold book is thorough, and he assumes the reader knows nothing about windows-specific programming.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. GUI Programming...
    By ShadeS_07 in forum C++ Programming
    Replies: 12
    Last Post: 12-28-2008, 03:58 PM
  2. Convert Windows GUI to Linux GUI
    By BobS0327 in forum Linux Programming
    Replies: 21
    Last Post: 11-27-2005, 03:39 AM
  3. .NET And GUI Programming :: C++
    By kuphryn in forum C++ Programming
    Replies: 4
    Last Post: 01-27-2002, 03:22 PM
  4. GUI Programming :: C++ Exclusive
    By kuphryn in forum C++ Programming
    Replies: 5
    Last Post: 01-25-2002, 02:22 PM
  5. C++: Reference Book, GUI, Networking & Beyond
    By kuphryn in forum C++ Programming
    Replies: 4
    Last Post: 11-10-2001, 07:03 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21