Here is a popular tutorial. win32 api is C, not C++. You can create c++ programs that call win32 api but it isn't necessary. MFC and wxWidgets are two c++ gui libraries. wxWidgets is free and works with most compilers and operating systems. MFC is not free and restricted to MS-Windows.
I apologize for bursting into the conversation.
I read the win32 tutorial that Ancient Dragon talked about,it's pretty good.
I just wanted to ask one question:
If I build a program using win32 API on windows xp professional version 2002.
Will that program run correctly on other versions of windows(windows 98,windows 95,windows vista)?
Maybe -- depends on what api functions you use. When unsure what version of the os a function supports, look it up in MSDN and it will tell you. There are many functions that are either unsupported on older versions of Windows or does not exist at all. For example, UNICODE is not supported in Win95/98 so if you compiled your program for UNICODE it will not run on either of those versions of MS-Windows.
I understand the story with the older versions of windows(it's actualy pretty logical, isn't it : ) ).
And if I understand correctly the more recent versions should
support all the functions that their predecessors supported( vista should support all the api functions that xp supported), am I right?
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...