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. c++ wrapper and inherance

c++ wrapper and inherance

Scheduled Pinned Locked Moved Managed C++/CLI
c++graphicshelpquestion
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.
  • J Offline
    J Offline
    Jonathan de Halleux
    wrote on last edited by
    #1

    Here's the problem I'm facing: I have a hierarchy of classes:

    class button;
    class bitmap_button : public button;
    class text_button : public button;

    Now I want to wrap this is managed c++. How should I do this ? Jonathan de Halleux.

    N L 2 Replies Last reply
    0
    • J Jonathan de Halleux

      Here's the problem I'm facing: I have a hierarchy of classes:

      class button;
      class bitmap_button : public button;
      class text_button : public button;

      Now I want to wrap this is managed c++. How should I do this ? Jonathan de Halleux.

      N Offline
      N Offline
      Nemanja Trifunovic
      wrote on last edited by
      #2

      Probably something like:

      class __gc managed_button {button* bt_;...};
      class __gc managed_bmp_button : public managed_button {bitmap_button* bmpBt_;...};

      1 Reply Last reply
      0
      • J Jonathan de Halleux

        Here's the problem I'm facing: I have a hierarchy of classes:

        class button;
        class bitmap_button : public button;
        class text_button : public button;

        Now I want to wrap this is managed c++. How should I do this ? Jonathan de Halleux.

        L Offline
        L Offline
        leppie
        wrote on last edited by
        #3

        I would first try trying to make the hierarchy managed by appending __gc. Then i would start praying... leppie::AllocCPArticle("Zee blog");

        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