Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Win32 programming, where to start?

Win32 programming, where to start?

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++debuggingtutorial
9 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    generic_user_id
    wrote on last edited by
    #1

    Normally I make everything with MFC, but the large mfc library and all the wizzards sometimes annoy me, so I'm going to try to make something -pure-, a normal win32 program. But now I noticed many things I always used appear to be mfc only (TRACE for example). So what is a good place to start? Are there any good Tutorials, or books which cover the basics of win32 well? All kinds of questions arose, such as... o Where to define my variables? (I used to define them in the classes in which they were used, and I try to avoid to make them global) o What functions to use to manipulate strings? (wsprintf uses LPTSTR as it should, but are there LPTSTR equivalents of sscanf and such?) If you could give some advice I would be very grateful. Thanks in advance! - Griffith

    _ M RaviBeeR J 4 Replies Last reply
    0
    • G generic_user_id

      Normally I make everything with MFC, but the large mfc library and all the wizzards sometimes annoy me, so I'm going to try to make something -pure-, a normal win32 program. But now I noticed many things I always used appear to be mfc only (TRACE for example). So what is a good place to start? Are there any good Tutorials, or books which cover the basics of win32 well? All kinds of questions arose, such as... o Where to define my variables? (I used to define them in the classes in which they were used, and I try to avoid to make them global) o What functions to use to manipulate strings? (wsprintf uses LPTSTR as it should, but are there LPTSTR equivalents of sscanf and such?) If you could give some advice I would be very grateful. Thanks in advance! - Griffith

      _ Offline
      _ Offline
      _Magnus_
      wrote on last edited by
      #2

      "programming windows 95" (not sure about the title) by charlez petzold (not sure bout the spelling :) ) might be a good book. But i would suggest you look at WTL instead, it is a lightwight framework for the win32 api. (or for the windowing part at least) /Magnus


      - A dog who attends a flea circus most likely will steal the whole show

      G 1 Reply Last reply
      0
      • _ _Magnus_

        "programming windows 95" (not sure about the title) by charlez petzold (not sure bout the spelling :) ) might be a good book. But i would suggest you look at WTL instead, it is a lightwight framework for the win32 api. (or for the windowing part at least) /Magnus


        - A dog who attends a flea circus most likely will steal the whole show

        G Offline
        G Offline
        generic_user_id
        wrote on last edited by
        #3

        Thanks, I'll check it out.

        1 Reply Last reply
        0
        • G generic_user_id

          Normally I make everything with MFC, but the large mfc library and all the wizzards sometimes annoy me, so I'm going to try to make something -pure-, a normal win32 program. But now I noticed many things I always used appear to be mfc only (TRACE for example). So what is a good place to start? Are there any good Tutorials, or books which cover the basics of win32 well? All kinds of questions arose, such as... o Where to define my variables? (I used to define them in the classes in which they were used, and I try to avoid to make them global) o What functions to use to manipulate strings? (wsprintf uses LPTSTR as it should, but are there LPTSTR equivalents of sscanf and such?) If you could give some advice I would be very grateful. Thanks in advance! - Griffith

          M Offline
          M Offline
          Michael P Butler
          wrote on last edited by
          #4

          I think you might be better looking into WTL first before moving to straight Win32 API. WTL is a much smaller and cleaner framework than MFC. The Charles Petzold book will give you a good grounding in Win32 programming. Not sure of the current title as my copy is Programming Windows 3.1 Michael :-) Logic, my dear Zoe, merely enables one to be wrong with authority. - The Doctor

          G 1 Reply Last reply
          0
          • G generic_user_id

            Normally I make everything with MFC, but the large mfc library and all the wizzards sometimes annoy me, so I'm going to try to make something -pure-, a normal win32 program. But now I noticed many things I always used appear to be mfc only (TRACE for example). So what is a good place to start? Are there any good Tutorials, or books which cover the basics of win32 well? All kinds of questions arose, such as... o Where to define my variables? (I used to define them in the classes in which they were used, and I try to avoid to make them global) o What functions to use to manipulate strings? (wsprintf uses LPTSTR as it should, but are there LPTSTR equivalents of sscanf and such?) If you could give some advice I would be very grateful. Thanks in advance! - Griffith

            RaviBeeR Offline
            RaviBeeR Offline
            RaviBee
            wrote on last edited by
            #5

            The Petzold book is an excellent tutorial. Btw, you can (and should!) continue to use classes. /ravi Let's put "civil" back into "civilization" http://www.ravib.com ravib@ravib.com

            G 1 Reply Last reply
            0
            • RaviBeeR RaviBee

              The Petzold book is an excellent tutorial. Btw, you can (and should!) continue to use classes. /ravi Let's put "civil" back into "civilization" http://www.ravib.com ravib@ravib.com

              G Offline
              G Offline
              generic_user_id
              wrote on last edited by
              #6

              Thanks, I'll see if I can find it. Oh.. and I didn't want to stop using classes, only the CString, CDialog, and those are the ones I wasn't particually fond of.

              M 1 Reply Last reply
              0
              • G generic_user_id

                Thanks, I'll see if I can find it. Oh.. and I didn't want to stop using classes, only the CString, CDialog, and those are the ones I wasn't particually fond of.

                M Offline
                M Offline
                Michael P Butler
                wrote on last edited by
                #7

                STL will handle the string classes using std::string. WTL will give you a nice thin framework for CDialog. You could write your own framework, do a search for Windows++ for an example. Michael :-) Logic, my dear Zoe, merely enables one to be wrong with authority. - The Doctor

                1 Reply Last reply
                0
                • M Michael P Butler

                  I think you might be better looking into WTL first before moving to straight Win32 API. WTL is a much smaller and cleaner framework than MFC. The Charles Petzold book will give you a good grounding in Win32 programming. Not sure of the current title as my copy is Programming Windows 3.1 Michael :-) Logic, my dear Zoe, merely enables one to be wrong with authority. - The Doctor

                  G Offline
                  G Offline
                  generic_user_id
                  wrote on last edited by
                  #8

                  Would you happen to know any good books which cover the WTL basics then?

                  1 Reply Last reply
                  0
                  • G generic_user_id

                    Normally I make everything with MFC, but the large mfc library and all the wizzards sometimes annoy me, so I'm going to try to make something -pure-, a normal win32 program. But now I noticed many things I always used appear to be mfc only (TRACE for example). So what is a good place to start? Are there any good Tutorials, or books which cover the basics of win32 well? All kinds of questions arose, such as... o Where to define my variables? (I used to define them in the classes in which they were used, and I try to avoid to make them global) o What functions to use to manipulate strings? (wsprintf uses LPTSTR as it should, but are there LPTSTR equivalents of sscanf and such?) If you could give some advice I would be very grateful. Thanks in advance! - Griffith

                    J Offline
                    J Offline
                    Jeremy Falcon
                    wrote on last edited by
                    #9

                    I've read "Win32 Programming" by Brent Rector and Joseph M. Newcomer. It's an excellent read and a great reference book. My copy started to fall apart because I used it so much when learning pure Win32 programming. Also, Joseph is a registered CPian and well-respected programmer. Take a look at some of his articles to see the quality of his work. This is also reflected in the book. Jeremy L. Falcon Homepage : Sonork = 100.16311
                    "Victims falling under chains ~ You hear them crying dying pains The fist of terrors breaking through ~ Now there's nothing you can do" Song: Phantom Lord - Album: Kill 'em All - Artist: Metallica

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups