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. how to make Visual C++ Components

how to make Visual C++ Components

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++tutorial
4 Posts 2 Posters 1 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.
  • K Offline
    K Offline
    Kuniva
    wrote on last edited by
    #1

    When you go to Project>Add to project>Components and controls you can choose from a variety of C++ components (no Active-x) which are apparently just blocks of code which are added to your project. Now my question is: how do i make these components myself so they appear in the folder when you add a component. (when i go to the folder in explorer there's nothing there so i'm guessing it is filled at runtime) Anyone know how to? thanks in advance Kuniva --------------------------------------------

    M 1 Reply Last reply
    0
    • K Kuniva

      When you go to Project>Add to project>Components and controls you can choose from a variety of C++ components (no Active-x) which are apparently just blocks of code which are added to your project. Now my question is: how do i make these components myself so they appear in the folder when you add a component. (when i go to the folder in explorer there's nothing there so i'm guessing it is filled at runtime) Anyone know how to? thanks in advance Kuniva --------------------------------------------

      M Offline
      M Offline
      Mel Stober
      wrote on last edited by
      #2

      If you just want to add a class from one of your projects into the gallery, in the Class View tab, right-click the name of the class, and select "Add To Gallery"

      K 1 Reply Last reply
      0
      • M Mel Stober

        If you just want to add a class from one of your projects into the gallery, in the Class View tab, right-click the name of the class, and select "Add To Gallery"

        K Offline
        K Offline
        Kuniva
        wrote on last edited by
        #3

        Thanks, this is a convenient function i didn't know about yet, however i still would like to know how to make my own components (if thats possible anyways...) Kuniva --------------------------------------------

        M 1 Reply Last reply
        0
        • K Kuniva

          Thanks, this is a convenient function i didn't know about yet, however i still would like to know how to make my own components (if thats possible anyways...) Kuniva --------------------------------------------

          M Offline
          M Offline
          Mel Stober
          wrote on last edited by
          #4

          Select File | New | MFC ActiveX ControlWizrd, create the ActiveX control. When the compiler compiles it, the last thing it does is register it as an ActiveX component, which also includes it as a component. Thats the easy part. The hard part is creating the ActiveX control! There's a tutorial in MSDN (Circie) that is a simple illuratration of how to do that. There are also whole books devoted to this topic.

          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