Page 1 of 1

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

Posted: Wed Jun 25, 2003 4:37 am
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

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

Posted: Wed Jun 25, 2003 11:20 am
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++.

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

Posted: Wed Jun 25, 2003 3:58 pm
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.

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

Posted: Wed Jun 25, 2003 4:01 pm
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.

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

Posted: Wed Jun 25, 2003 7:13 pm
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?

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

Posted: Thu Jun 26, 2003 1:30 am
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.

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

Posted: Fri Jun 27, 2003 8:43 pm
by scarberry
THANK YOU!!!