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