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. Managed C++/CLI
  4. How to wrap MFC control in C++/CLI

How to wrap MFC control in C++/CLI

Scheduled Pinned Locked Moved Managed C++/CLI
c++csharptutorialquestion
3 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.
  • B Offline
    B Offline
    BinName
    wrote on last edited by
    #1

    Hello everyone, I have a lot of MFC control classes in C++,and I want to wrap them with C++/CLI and resue them in C# Application. but I do not know how to wrap them. Can anyone give an hand? Thanks a lot.

    L Z 2 Replies Last reply
    0
    • B BinName

      Hello everyone, I have a lot of MFC control classes in C++,and I want to wrap them with C++/CLI and resue them in C# Application. but I do not know how to wrap them. Can anyone give an hand? Thanks a lot.

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Birch Howe wrote:

      Can anyone give an hand?

      Look at the Articles here on CodeProject on the subject C++/CLI (look in the menu bar on the side of the page under "Chapters"). There is nothing specific about wrapping MFC other than any compiler/linker settings one might need and of course the dependency issues on deployment. Otherwise you are just wrapping a Native C++ class in a managed C++/CLI class.

      led mike

      1 Reply Last reply
      0
      • B BinName

        Hello everyone, I have a lot of MFC control classes in C++,and I want to wrap them with C++/CLI and resue them in C# Application. but I do not know how to wrap them. Can anyone give an hand? Thanks a lot.

        Z Offline
        Z Offline
        Zeinpresiyo
        wrote on last edited by
        #3

        Hello, I think Nishant Sivakumar's book "C++\CLI in action" talks about this specific topic in "6.6 Using an MFC control in a Windows Forms form" titled chapter. I've not tried yet... but i hope this helps.

        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