February 12th, 2002, 08:44 PM
Win32 API w/ C++
Does anyone know of any good beginner tutorials on the Win32 API?
I am experienced in writing command line C++ applications, and I am looking to expand to graphical Win apps.
I noticed that Visual C++ has a few help topics regarding the API, but I do not like those ones - I am picky.
I know this doesnt fit in this forum, but I noticed that the Win API is all OOP, and I am not that experienced with OOP, so if you know any good OOP tutorials, post them.
February 12th, 2002, 09:04 PM
For people getting into Windows programming, I always recommend two books:
Programming Windows by Charles Petzold (Win32 API)
Programming Windows with MFC by Jeff Prosise (MFC)
FYI, the Win32 API uses C, whereas MFC is an OO wrapper of the API written in C++.
Start with the Petzold book to get a firm understanding of the underlying API, then move onto MFC.
"Me fail English? That's unpossible!"
February 13th, 2002, 03:05 PM
Don't bother with any online tutorials of the WIN 32 API, they aren't any good ones.... Well, maybe a few beginner ones but, you won't find any use out of them....
Just search for "windows API tutorial" with google to find them
February 13th, 2002, 03:07 PM
Also, that book Programming Windows by Charles Petzold (Win32 API) is pretty good...
After a few minutes, I had my unanswered question answered. What did WINAPI stand for in int WINAPI WinMain([..]) (forgive me if I messed up somewhere with that, I'm still really new to everything windows API)
August 4th, 2003, 07:08 AM
See your header files for WINAPI. It is defined as _stdcall. It is the same as PASCAL, APIENTRY, FAR PASCAL, CDECL. It is just a calling convention in Windows programs. Over the time different are used, and now they are mantained for backward compatibility.
August 4th, 2003, 07:16 AM
No, the Windows API is not OOPin terms of C++. It is written entirely in C, but in an object oriented manner. OOP is not C++ or another technology. It is a paradigm. if you learn the API and are accustomed to C++ and objects you should stick with the C thinking of the world, handles, structures, macros, defines, etc. Petzold is excellent, but you should check for Platform SDK in the MSDN.
August 4th, 2003, 10:18 AM
I highly recommend this, as well. I also agree with jonsagara's suggestion to learn the win32 API before moving to MFC.