Page 1 of 1

Building TChart Classes into .lib

Posted: Thu Jun 18, 2015 8:36 pm
by 16673658
I am using TChart Pro ActiveX 2015. I want to build a .lib with all the TChart 2015 .cpp and .h files.

Then in my application which is dll I want to link statically with the .lib.

In Visual Studio 2010, what type of new project should I create if I want the COM support (COleDispatchDriver etc.)?

The plan is to link statically with the .lib and then use the provided ocx component (TChart2015.ocx) at runtime.

Re: Building TChart Classes into .lib

Posted: Thu Jun 18, 2015 9:03 pm
by 16673658
I want to add that currently I build the TChart classes into my application (dll) but I want to avoid that by building a .lib and linking with that.

Re: Building TChart Classes into .lib

Posted: Fri Jun 19, 2015 10:51 am
by Marc
Hi,

It looks as if the best way to achieve what you want is to ...
create a Win32 project, and in the Application Settings on the next page, choose ....
(http://stackoverflow.com/questions/5840 ... n-visual-c)

It seems that here you would select the 'Static library' option. I tried that and it appears to work ok to create a project with .lib output.

I hope that may be of help.

Regards,
Marc Meumann

Re: Building TChart Classes into .lib

Posted: Fri Jun 19, 2015 10:04 pm
by 16673658
Thanks. I tried that and it worked.