Thread: When to WIN

  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    28

    Cool When to WIN

    I am now comfortable with classes, pointers, functions, scope, overloading, etc... Now my question is, how much is enough for someone to go ahead and go Win32? To be honest, I really don't want to sit there and slog through absolutely ALL of C++ before doing Win32, nor does it *appear* to be necessary. For a newbie, how much C++ is enough to begin tackling Win32?

  2. #2
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916

    Re: When to WIN

    Originally posted by Grins2Pain
    I am now comfortable with classes, pointers, functions, scope, overloading, etc... Now my question is, how much is enough for someone to go ahead and go Win32? To be honest, I really don't want to sit there and slog through absolutely ALL of C++ before doing Win32, nor does it *appear* to be necessary. For a newbie, how much C++ is enough to begin tackling Win32?
    Win32 is ugly. It isn't too hard, but it's ugly. If you really want to do it, then do it, but it's ugly. Unless you really want to make a boring windows app, I'd suggest either something easy like Allegro and SDL, or OpenGL/DirectX.
    Away.

  3. #3
    Registered User
    Join Date
    Sep 2003
    Posts
    28

    Wwwwait

    I can use DirectX without Win32 ?! Tell me more!

    (I have almost no interest in apps programming, no offense to all the fine applications programmers of the world)

  4. #4
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    Confuted, why do you hate windows apps so much? IMO they are very useful for many purposes, such as word processors, computer utilities, web browsers and interfacers, etc. You can't use graphics libraries for EVERYTHING.

    Win32 is ugly. It isn't too hard, but it's ugly.
    I don't understand. Why is it ugly?
    [email protected]
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  5. #5
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    It is ugly, but it is the base of everything in windows. You simply cannot create a stable and standard abiding program whatever graphics library you use, without a proper knowledge of Win32.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  6. #6
    Grammar Police HybridM's Avatar
    Join Date
    Jan 2003
    Posts
    355
    To try out some Win32, really all you need is a fair knowledge of the C features, because Win32 doesn't use C++.

    As for DX without win32, supposedly you shouldn't use too much Win32 in a dx program as it slows it down (heard this somewhere), but a dx program still needs a message procedure, window class (different to a C++ class), and things of that nature.

    And you'll still want to do things like load DLLs and use the registry.
    Thor's self help tip:
    Maybe a neighbor is tossing leaf clippings on your lawn, looking at your woman, or harboring desires regarding your longboat. You enslave his children, set his house on fire. He shall not bother you again.

    OS: Windows XP
    Compiler: MSVC

  7. #7
    Amateur
    Join Date
    Sep 2003
    Posts
    228
    Yes, DirectX needs Win32 stuffs to work properly. But, well, DirectX is somehow melted with Win32 as it uses itself some of the API features. (for instance, it has a hook on the message procedure)
    Yet, you should learn Win32 before you try out DirectX. Besides, to understand well Dx, you shall need some knowledge of the COM.

  8. #8
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    Ah, by "it's ugly" I mean that the function names are long and convoluted, and all the Hungarian notation is enough to make your head spin. I understand the necessity of the WinAPI, but it isn't "pretty" and "easy" like some of the other APIs, which might be better for a newbie to learn first... just because they aren't confusing and you get results faster and can master the basics like that.
    Away.

  9. #9
    unleashed alphaoide's Avatar
    Join Date
    Sep 2003
    Posts
    696
    I agree with confuted's definition of "it's ugly". It's like suggesting someone to learn VB first before C++ because with VB you could develop program with pretty GUI in no time. It's my second semester taking C++ and all I see so far is boring text.

  10. #10
    Amateur
    Join Date
    Sep 2003
    Posts
    228
    You only use GUI in rare events. Really, GUI under win32 is not pleasant to write, the style is ugly, that's all. But it's not difficult to understand.

  11. #11
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398

    Thumbs up Grins2Pain, YOU ARE READY!

    really all you need is a fair knowledge of the C features
    Right! I think if you understand variables, pointers, structures, loops, if-statements, switch-statements, and functions, you can start working through Programming Windows, by Charles Petzold. His book focuses on the GUI... how to make your program look and work like a normal Windows program.

    You only need the more advanced C++ stuff to make your program do something useful. And, so you can do things efficiently.

    The only danger in starting Windows programming too soon, is that there is a lot of Windows-related stuff to learn and you can easily get bogged-down learning Windows, distracting you from the "less-sexy" standard C++ stuff.

    Although Petzold uses C, you can just as easily use the WinAPI functions in a C++ program.

  12. #12
    Board Conservative UnregdRegd's Avatar
    Join Date
    Jul 2003
    Posts
    154
    The Windows API is undefined for the limit of ugliness. I hate it more than I hate Java, actually. If you can, maybe, you could try using Borland's VCL (Visual Class Library) or Microsoft's MFC (Microsoft Foundation Classes). Better yet, maybe you could try learning GTK+ or some other windowing toolkit that's been ported from X to Windows. That way, your windowed programs can easily go from Windows to Linux and many other operating systems.
    I am a programmer. My first duty is to God, then to nation, then to employer, then to family, then to friends, then to computer, and finally to myself. I code with dignity, honor, and integrity.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 05-07-2009, 11:31 AM
  2. Constructor problem
    By rebel in forum C++ Programming
    Replies: 22
    Last Post: 01-11-2006, 06:45 AM
  3. help with this
    By tyrantil in forum C Programming
    Replies: 18
    Last Post: 01-30-2005, 04:53 PM
  4. removing WIN 2000
    By DMaxJ in forum Tech Board
    Replies: 3
    Last Post: 10-15-2002, 09:25 AM
  5. Can I get this to loop back?
    By Unregistered in forum C Programming
    Replies: 9
    Last Post: 05-07-2002, 03:34 AM