Page 1 of 1

Modifying VC++ 6.0 project for ActiveX control

Posted: Mon Mar 05, 2007 9:53 pm
by 9532498
I need to modify an existing VC++ 6.0 project to include an ActiveX control. What setting should I change in the Project file (.dsp)?

I'm using as is and get an error in InitControlContainer(). Basically the app can't display a TChart object created at design time or created dynamically. HELP!

When I create a new project from scratch and check "Include ActiveX control" in the new project menu, everything works fine.

Posted: Mon Mar 12, 2007 9:22 am
by Pep
Hi,

the .dsp file should include the references to the .h files and CLSIDs of the TeeChart components used (you could compare the .dsp file with a clean project which used the TeeChart components).
However you should be able to add a TChart component into a existing project without problems. Which error are you getting ?