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!

About ActiveX control.

Status
Not open for further replies.

WilliamGS

Programmer
Jan 21, 2004
54
PE
Hi all, I am creating an ActiveX control with VC++ 6.00 and MFC; it work fine but I need to export an object together my OCX called "CItemInfo", I have created the class derived from "CCmdTarget" and Class Wizard creates the interface, but, when I insert my OCX in a project, I can't see "CItemInfo" interface. What is the problem?

Thanks in advance,

William GS
 
After you add the class derived from "CCmdTarget", can you see it in the .idl file of your project?

Ion Filipski
1c.bmp
 
Hi IonFilipski. Yes, I can see the class derived from "CCmdtarget" (CItemInfo) in the .idl file. When I insert mi OCX in a project (Project->Add To Project->Component and Controls->Registered ActiveX Controls) I can get only get "CTreeListCtrl" but not "CItemInfo".

Thank you very much,

William G.S.
 
try to register the control with regsvr32 or from the menu of VisualStudio

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top