Win32 API vs STL

This is a discussion on Win32 API vs STL within the C++ Programming forums, part of the General Programming Boards category; I am looking to start getting into programming with simple GUI, I have been doing C++ for a while and ...

  1. #1
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094

    Win32 API vs STL

    I am looking to start getting into programming with simple GUI, I have been doing C++ for a while and want to step up to this. I have some friends saying learning STL will let me do what I want (simple button with counter) but others told me Win32 because it is more useful in the end.

  2. #2
    Registered User
    Join Date
    Aug 2002
    Location
    Hermosa Beach, CA
    Posts
    446
    The STL is not explicitly for programming GUI's. But it is very cool, and everyone learning c++ should spend time with it. And learning a windowing API is obviously useful.
    The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows.

  3. #3
    Registered User
    Join Date
    Jan 2005
    Posts
    7,340
    They are two dfferent things. If you want to do a simple GUI (button, counter), the STL will not do that, the Win32 API will. You can combine the use of STL with the Windows API, but if you want the GUI stuff now, learning STL won't help you with that, it will only help you be a better programmer.

  4. #4
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    Any recommendations for guides on these 2 subjects, I have been surfing around for a good win32 one for a days now.

  5. #5
    semi-colon generator ChaosEngine's Avatar
    Join Date
    Sep 2005
    Location
    Chch, NZ
    Posts
    597
    I presume since you have been doing C++ for a while and you're also looking at the STL (nit: it's actually the standard library, the STL was a library that was integrated into the standard) you want to become a C++ programmer.

    If this is the case, avoid the win32 API. It is a C API and will not help you to be a better C++ programmer. If you want to do GUI work I'd recommend wxWidgets (oo, cross-platform but looks native), .net windows forms or at least MFC (yes I know it's a win32 wrapper)
    "I saw a sign that said 'Drink Canada Dry', so I started"
    -- Brendan Behan

    Free Compiler: Visual C++ 2005 Express
    If you program in C++, you need Boost. You should also know how to use the Standard Library (STL). Want to make games? After reading this, I don't like WxWidgets anymore. Want to add some scripting to your App?

  6. #6
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  7. #7
    Registered User
    Join Date
    Aug 2002
    Location
    Hermosa Beach, CA
    Posts
    446
    The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Win32 API or Win32 SDK?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 07-20-2005, 03:26 PM
  2. OpenSSL and Win32 SSL API :: SSL/TLS
    By kuphryn in forum Networking/Device Communication
    Replies: 0
    Last Post: 03-10-2004, 06:46 PM
  3. FILES in WinAPI
    By Garfield in forum Windows Programming
    Replies: 46
    Last Post: 10-02-2003, 06:51 PM
  4. OLE Clipboard :: Win32 API vs. MFC
    By kuphryn in forum Windows Programming
    Replies: 3
    Last Post: 08-11-2002, 05:57 PM
  5. Thread Synchronization :: Win32 API vs. MFC
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 08-09-2002, 09:09 AM

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