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/C++ control in a dll

MFC/C++ control in a dll

Scheduled Pinned Locked Moved C / C++ / MFC
c++csharphelpquestion
3 Posts 2 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.
  • M Offline
    M Offline
    MrNed
    wrote on last edited by
    #1

    I have a (hopefully) simple problem. I want to create a custom control in C++, with or without MFC, that i can compile into a dll and use that control elsewhere eg other MFC apps and a .NET app. Whats the easiest way to do this?

    N 1 Reply Last reply
    0
    • M MrNed

      I have a (hopefully) simple problem. I want to create a custom control in C++, with or without MFC, that i can compile into a dll and use that control elsewhere eg other MFC apps and a .NET app. Whats the easiest way to do this?

      N Offline
      N Offline
      Nibu babu thomas
      wrote on last edited by
      #2

      MrNed wrote:

      Whats the easiest way to do this?

      By Creating an MFC Extension Dll.


      Nibu thomas Software Developer

      M 1 Reply Last reply
      0
      • N Nibu babu thomas

        MrNed wrote:

        Whats the easiest way to do this?

        By Creating an MFC Extension Dll.


        Nibu thomas Software Developer

        M Offline
        M Offline
        MrNed
        wrote on last edited by
        #3

        But that project creates a CWinApp class. How do I say create a CButton derived class and use that as the custom control elsewhere?

        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