MFC Classes vs. Non-MFC Code
-
I'm just getting started with windows programming, and am looking for some reliable information on this subject. Is it preferred technique to mix program code written with MFC classes and functions with non-MFC, ordinary C++ windows code? I understand that this can be done, but, I have no experience actually mixing MFC classes with traditional user defined classes and objects. I would appreciate any generalized suggestions, or, citations of specific references. Thanks.
-
I'm just getting started with windows programming, and am looking for some reliable information on this subject. Is it preferred technique to mix program code written with MFC classes and functions with non-MFC, ordinary C++ windows code? I understand that this can be done, but, I have no experience actually mixing MFC classes with traditional user defined classes and objects. I would appreciate any generalized suggestions, or, citations of specific references. Thanks.
Yes, you can feel free to use non-MFC classes in your code, especially for code outside the GUI. Note that MFC also provides a number of non-GUI utility classes that you may find useful. /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com
-
I'm just getting started with windows programming, and am looking for some reliable information on this subject. Is it preferred technique to mix program code written with MFC classes and functions with non-MFC, ordinary C++ windows code? I understand that this can be done, but, I have no experience actually mixing MFC classes with traditional user defined classes and objects. I would appreciate any generalized suggestions, or, citations of specific references. Thanks.
MFC is just a set of classes that wrap Win32 functionality. You'll NEED to write your own classes in addition to do anything non-trivial with MFC, I would have thought, and to the compiler, there is no real fundamental difference between your classes and Microsofts ( except I trust yours will not leak memory ). Nebulous Person wrote: non-MFC, ordinary C++ windows code? Do you mean C++ *windows* code, or just C++ code ? I'm not sure why you would want to mix Win32 and MFC code, but it can certainly be done. Christian Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
-
MFC is just a set of classes that wrap Win32 functionality. You'll NEED to write your own classes in addition to do anything non-trivial with MFC, I would have thought, and to the compiler, there is no real fundamental difference between your classes and Microsofts ( except I trust yours will not leak memory ). Nebulous Person wrote: non-MFC, ordinary C++ windows code? Do you mean C++ *windows* code, or just C++ code ? I'm not sure why you would want to mix Win32 and MFC code, but it can certainly be done. Christian Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
Ravi Bhavnani and Christian Graus, Thanks.