Page 1 of 1

TeeChart AX into LIB

Posted: Mon Jul 04, 2005 12:25 pm
by 9083235
Hi,

I tried TeeChart 6 AX component add to VC project. However, compiler give - axes.h(20) : error C2504: 'COleDispatchDriver' : base class undefined. This project is Lib !!! (In Exe-project all works successfully).
How make that all worked in Lib-project ?

Thanks in advance, Aleksei.

Posted: Tue Jul 05, 2005 7:52 am
by narcis
Hi Aleksei,

To help you overcoming your problems could you please answer a couple of questions to help us identifying your possible problems?

Are you using VC++ 6.0 or VC++ 7.0 ? Which project type, exactly, are you using?

Thanks in advance.

Answer

Posted: Tue Jul 05, 2005 8:19 am
by 9083235
I using VC++ 6.0. I created "Win32 Static Library" project.

Thanks, Aleksei

Posted: Tue Jul 05, 2005 9:32 am
by Chris
Hi Aleskei,

Did you check the following two options?
Pre-Compiled header
MFC support

What code do you use to create an instance of the TeeChart v7 ActiveX Control?

Many thanks,

Posted: Tue Jul 05, 2005 11:35 am
by 9083235
"Pre-Compiled header" and
"MFC support" is checked.

Form including CTChart instance. This is some code correctly works in MFC (EXE) projects.

Thanks, Aleksei.