Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Win32 API or MFC?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Can someone please explain to me the difference between those two.What is API best for and for what is MFC best for?Who should learn what?

thank you n see ya
 
Hi

The API is the programmer's interface to the Windows Operating system. With the API, you're programming with C or C++. You can go very deep into the system but that's hard and not always common to all Win32 platform.
MFC is a high-level encapsulation of the API. It provides a set of common classes needed for Windows programming: windows, menus, controls, system, ... You use only C++.
MFC should fit most of your needs, except if you plan to dig deep into Windows. It is much easier to use MFC as it takes care of all the gory details of the API.
With MFC, you concentrate your work on the functionality of your application. It's much more productive and your code should ( hum ....) migrate quite easily from one version of Windows to another ( if you follow the Microsoft rules, which is what Microsoft do not always do ...)

HTH

Thierry


 
Hi also.I don´t know if a have the intelligence for it,but I'm one of those who who would like to go deep.If I understand you corectelly,win32 Api is a bit more powerful?But is it also more complicated?Is writing a program with MSD that much easier?If I wanted to program a driver for some divice I wouldn't use MSD?Or could I?I supose learning both of them is like learning two languages,you know both of them,but none of them really good?I know,a lot of questions.If you answer a few,I'm a happy man.Bye
 
Hi

Well, I never wrote and will never write a device driver as It's too far from my needs. I would use the Device Driver SDK to do this as as lot of thing is already made to make your life easier.
Programming Windows requires to do a lot of boring and obscure stuff that I don't to know because a day is only 24 hours long.
Of course, knowing the API is better if you want to go deeper. But be prepared to spend nights to read thousands pages of explanations and code. Also be prepared to update your knowledge as the version of Windows evolves.
I use the API when I really need it ( often because nobody still encapsulate it or I don't know about an existing class).

HTH

Thierry
 
HI all ,

I need to know the difference between MFC & win32 api.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top