I need to use an existing VBX control from my VC++ application. I have been a VB developer, and have worked on simple VC++ projects. Could you please give me advice on how I should go about doing this?
Here's one method (there are others, especially for COM objects that use a class library):
If the control is already installed and registered on your PC, you often can simply #include a header file that is included with the control into whichever files you reference the control (or you can put it in your stdafx.h file so it's available everywhere).
You may need to verify when you are installing the control that you are also installing any development files, such as the header file(s).
Also, be sure to verify that your Visual Studio path includes the directory where the header file is located. (On the VS menu, TOOLS/OPTIONS/DIRECTORIES/INCLUDE FILES).
The compiler will usually take care of creating another project specific header file that's automatically added in your project.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.