|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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. Thanks. |
|
#2
|
||||
|
||||
|
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.
__________________
Jon Sagara "Me fail English? That's unpossible!" |
|
#3
|
|||
|
|||
|
Heh,
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 -cARL |
|
#4
|
|||
|
|||
|
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) -cARL |
|
#5
|
|||
|
|||
|
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.
|
|
#6
|
|||
|
|||
|
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.
|
|
#7
|
||||
|
||||
|
Quote:
__________________
Jason Doucette / Xona.com™ - Programming Windows Errata Addendum "Discussion is an exchange of knowledge; argument is an exchange of ignorance." |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > Win32 API w/ C++ |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|