Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using a VBX

Status
Not open for further replies.

sheila11

Programmer
Dec 27, 2000
251
US
Hi all,

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?

Thanks,
Sheila
 
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.

I hope I got everything right and that it helps! :cool:
 
This VBX hasn't got any header file! What other way can I use?

Thanks,
Sheila
 
This VBX hasn't got any header file! What other way can I use?

Thanks,
Sheila
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top