I'm using Visual C++ and TChart ActiveX Control Version 7. I created a dialog and added a TeePreviewPanel at Design Time. I used the Class Wizard to associate a C++ class with the dialog. Then I tried to associate a member variable of that class with the PreviewPanel. I get an error message saying the following
"The ActiveX Control TeeChart Preview Panel v7 has not been inserted into the project. Developer studio will do this now and generate a C++ wrapper class for it"
I have already added the CTeePreviewPanel class to my Visual C++ project. I've also registered the teechart7.ocx component. I'm able to add the TCharts easily at both design and runtime.
So I'm not sure what's going on with the Preview Panel.
Adding TeePreviewPanel at Design Time
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi nbp,
So, after Visual Studio show you that message, did the application run fine or there was any problem with TeePreviewPanel?
Thanks in advance.
So, after Visual Studio show you that message, did the application run fine or there was any problem with TeePreviewPanel?
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
I could not add the variable associated with TeePreviewPanel.
I tried a workaround - added the code manully to the .cpp and .h file. Then it worked fine.
The problem is that Visual Studio is not associating the class CTeePreviewPanel (already added to the project) with the component "TChart Preview Panel V7"
I tried a workaround - added the code manully to the .cpp and .h file. Then it worked fine.
The problem is that Visual Studio is not associating the class CTeePreviewPanel (already added to the project) with the component "TChart Preview Panel V7"
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi nbp,
Have you tried using ClassWizard and add the new variable for the PreviewPanel at the Member Variables tab? It works fine for me here using v7.0.1.4. Which TeeChart version are you using?
Have you tried using ClassWizard and add the new variable for the PreviewPanel at the Member Variables tab? It works fine for me here using v7.0.1.4. Which TeeChart version are you using?
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |