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. Deriving a class

Deriving a class

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorial
5 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.
  • F Offline
    F Offline
    FarPointer
    wrote on last edited by
    #1

    hi, i have a very elementary doubt that is can i create a class that is not derived from any of the MFC class ,and if yes how to . thanx in advance Farpointer

    C 1 Reply Last reply
    0
    • F FarPointer

      hi, i have a very elementary doubt that is can i create a class that is not derived from any of the MFC class ,and if yes how to . thanx in advance Farpointer

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      Yes of course ! If you create your class with ClassWizzard, you have a ComboBox in which you can choose 'Generic class' (or something like that ;) )

      F 1 Reply Last reply
      0
      • C Cedric Moonen

        Yes of course ! If you create your class with ClassWizzard, you have a ComboBox in which you can choose 'Generic class' (or something like that ;) )

        F Offline
        F Offline
        FarPointer
        wrote on last edited by
        #3

        but iam afraid wether thats for an generic CWnd ,thats wat i saw any way i will check it out again . thanx

        B 1 Reply Last reply
        0
        • F FarPointer

          but iam afraid wether thats for an generic CWnd ,thats wat i saw any way i will check it out again . thanx

          B Offline
          B Offline
          Bob Flynn
          wrote on last edited by
          #4

          No, if you chose generic class and do not specify a base class, then you will not derive your class from any other class. Good Luck.

          F 1 Reply Last reply
          0
          • B Bob Flynn

            No, if you chose generic class and do not specify a base class, then you will not derive your class from any other class. Good Luck.

            F Offline
            F Offline
            FarPointer
            wrote on last edited by
            #5

            well thanx to both of you.

            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