Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. MFC Classes vs. Non-MFC Code

MFC Classes vs. Non-MFC Code

Scheduled Pinned Locked Moved C / C++ / MFC
c++visual-studioquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    ursus zeta
    wrote on last edited by
    #1

    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.

    R C 2 Replies Last reply
    0
    • U ursus zeta

      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.

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • U ursus zeta

        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.

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        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

        U 1 Reply Last reply
        0
        • C Christian Graus

          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

          U Offline
          U Offline
          ursus zeta
          wrote on last edited by
          #4

          Ravi Bhavnani and Christian Graus, Thanks.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups