Thread: Book help

  1. #1
    The Earth is not flat. Clyde's Avatar
    Join Date
    Mar 2002
    Posts
    1,403

    Book help

    What is the best book for learning windows API programming with C++, Petzold's book has been recommended, but that's for C right?

    Also do you think it's worth skipping the API side entirely and launching straight into MFC?

    Thanks in advance

  2. #2
    Registered User (TNT)'s Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    339
    Ok, first things first, you definatly shoudnt start with learning MFC, if you do want to do mfc then you should have a solid understanding of the API first. I have never learnt MFC and dont feel the need to.

    Secondly Petzolds book is probably the best you can get for windows API programming, it is in C yes but it is easily adaptable to C++ and is almost the same. I would advise you to get petzolds book and learn most of the stuff in that, then i got this other book called Windows API Bible, or something similar to that it has a nearly complete listing of all win32 functions and demonstrates how to use them all. Its best to have a book that teaches you from the ground up and then possibly a reference book.


    Hope that helps,
    TNT
    TNT
    You Can Stop Me, But You Cant Stop Us All

  3. #3
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    It doesn't matter if you are using C or C++, the interface to the API routines is the same, as are the concepts. Petzold book, (make sure you get the most up to date version, 5th edition I think), is the definitive book, although Herbert Schildts Windows NT4 from the Ground Up is also good, (don't worry about the NT4 reference in the title, it is a general API book).

    TNT is right about the API. I would always advocate picking up an understanding of the API before starting with MFC or any other class library. Once you understand what is going on under the surface, a lot of the somewhat odd looking MFC/VCL/OWL/etc. code makes more sense. Also, the class libraries do a good job with simple "grey box" type applications, but when you start to push the envelope, the benefits of the libraries start to diminish and the API becomes the more natural tool. It is easy to go API -> class library, class library -> API is much harder.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  4. #4
    The Earth is not flat. Clyde's Avatar
    Join Date
    Mar 2002
    Posts
    1,403
    Thanks, Petzold's it is then

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. URGENT: Help wanted...in C
    By iamjimjohn in forum C Programming
    Replies: 16
    Last Post: 05-18-2007, 05:46 AM
  2. Can't display book and borrower's details.
    By grscot in forum C++ Programming
    Replies: 0
    Last Post: 05-02-2003, 10:18 AM
  3. Books on C and C++
    By kermi3 in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-28-2002, 04:18 PM
  4. C++: Reference Book, GUI, Networking & Beyond
    By kuphryn in forum C++ Programming
    Replies: 4
    Last Post: 11-10-2001, 08:03 PM