Api

This is a discussion on Api within the Windows Programming forums, part of the Platform Specific Boards category; i'm fairly new to programming in C++, and i'm progressing well, i now want to program using the WINAPI and ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    64

    Question Api

    i'm fairly new to programming in C++, and i'm progressing well, i now want to program using the WINAPI and am trying to find a good book on it, i here good things about pretzold's programming windows but the review says its written in c and not c++.

    does this matter, or will i have to use c to program with the API, i don't really want to be using scanf, printf and so on. Whats my options?

    cheers guys.

  2. #2
    Registered User -leech-'s Avatar
    Join Date
    Nov 2001
    Posts
    54
    You can programm for the Win32 API in most any language you wish. Personally, i wouldn't go for a book if you're just starting, it'd start with a simple tutorial and then move from there.

    This is probably the best one i've found so far, easy to understand and it's still being updated: http://www.winprog.org/tutorial/

    You can also go to #winprog on EFnet if you need some advice or help.
    Not yet, have to think of one...

  3. #3
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    does this matter
    Far from it. It makes your study of the win32 api easier.You can concentrate on the api itself rather than trying to pervert it into a more object oriented framework. C++ is only a superset of C so understanding the code will not be difficult. I recommend this book a lot.

    will i have to use c to program with the API
    No not at all. But it may be best while learning the api. When you get reasonably familiar with programming for windows techniques and api then you could move on to MFC which will give you a much more object oriented look at win32. MFC is an application framework. You can imagine it as a set of wrapper classes for the api. It is far from complete and as such you often have to use the api to get the job done.And because of the time you spent with Petzold you will know how to do things in pure api when you have to. If you skip learning the api I promise you that you will regret it the minute you try to do something that is not covered by MFC. The best book that I have read for learning MFC is :-
    Programming windows with MFC by Jeff Prosise.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  4. #4
    Registered User -leech-'s Avatar
    Join Date
    Nov 2001
    Posts
    54
    Originally posted by Stoned_Coder
    If you skip learning the api I promise you that you will regret it the minute you try to do something that is not covered by MFC.
    Isn't that the truth....
    Not yet, have to think of one...

  5. #5
    Registered User
    Join Date
    Jan 2002
    Posts
    64
    Thanx guys you've helped a lot, this site is great and everyone is so friendly, always willing to help, i wish i had found it earlier when i was having trouble with some basics.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Want to learn Windows API for Game Programming
    By George M. in forum Windows Programming
    Replies: 15
    Last Post: 09-28-2008, 11:26 AM
  2. platform specific API or C standard API
    By George2 in forum C Programming
    Replies: 1
    Last Post: 11-12-2007, 01:32 AM
  3. OpenSSL and Win32 SSL API :: SSL/TLS
    By kuphryn in forum Networking/Device Communication
    Replies: 0
    Last Post: 03-10-2004, 07:46 PM
  4. FILES in WinAPI
    By Garfield in forum Windows Programming
    Replies: 46
    Last Post: 10-02-2003, 07:51 PM
  5. Is it foolish to program with Win32 API ?
    By Kelvin in forum Windows Programming
    Replies: 2
    Last Post: 07-09-2002, 03:03 PM

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