Tuts for MFC in non oop C++. where can i find some?

Programming, for all ages and all languages.
Post Reply
Scarberry

Tuts for MFC in non oop C++. where can i find some?

Post by Scarberry »

can someone please point me to some tutorials for using mfc objects but through pure code in a non oop C++ IDE (dev-c++)?
thanks
Tim

Re:Tuts for MFC in non oop C++. where can i find some?

Post by Tim »

No, because you can't use MFC without using object-orientated C++. What's more, you can't use MFC without using Visual C++.
ark

Re:Tuts for MFC in non oop C++. where can i find some?

Post by ark »

While the former is true, I don't believe the latter is (i.e., I don't believe Visual C++ is the only IDE that can use MFC), although you probably can't use MFC with Dev-C++. In any case, correct me if I'm wrong, but are you asking for references for using MFC without the AppWizard? If so, then look at Jeff Prosise's Programming Windows with MFC. The book does use AppWizard, but the first few chapters don't, and once you've seen how to do it without AppWizard, you don't really need AppWizard (although it's still helpful).

If you're actually asking for a way to use MFC without object-oriented programming, then go with that Tim said...after all, the whole point of MFC is to have an object-oriented Windows API.
Tim

Re:Tuts for MFC in non oop C++. where can i find some?

Post by Tim »

Although in the past a few compiler vendors have licenced the MFC source code, it does rely on a lot of Microsoft extensions. Unless the DevC++ compiler (gcc?) supports all of these extensions, you're not going to be able to develop MFC apps using it.
scarberry

Re:Tuts for MFC in non oop C++. where can i find some?

Post by scarberry »

ok thanks, the reason i ask is i want to be able to use things like buttons in a window. i can get thje window created but i can get anything to go on it like buttons and suuch.and io dont have VC++. is there a way to make buttons on it and other things like that or would i have to make my own from scratch?
Tim

Re:Tuts for MFC in non oop C++. where can i find some?

Post by Tim »

You don't need MFC for that. Anything you can do in MFC you can do in C with the Windows API. MFC just lets you do it with classes and wizards.

Look at this sample:
http://msdn.microsoft.com/library/defau ... cation.asp

Any documentation you'll need will be in MSDN.
scarberry

Re:Tuts for MFC in non oop C++. where can i find some?

Post by scarberry »

THANK YOU!!!
Post Reply