Building TChart Classes into .lib

TeeChart for ActiveX, COM and ASP
Post Reply
nbp
Newbie
Newbie
Posts: 24
Joined: Tue Apr 28, 2015 12:00 am

Building TChart Classes into .lib

Post by nbp » Thu Jun 18, 2015 8:36 pm

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.

nbp
Newbie
Newbie
Posts: 24
Joined: Tue Apr 28, 2015 12:00 am

Re: Building TChart Classes into .lib

Post by nbp » Thu Jun 18, 2015 9:03 pm

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.

Marc
Site Admin
Site Admin
Posts: 1217
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Building TChart Classes into .lib

Post by Marc » Fri Jun 19, 2015 10:51 am

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
Steema Support

nbp
Newbie
Newbie
Posts: 24
Joined: Tue Apr 28, 2015 12:00 am

Re: Building TChart Classes into .lib

Post by nbp » Fri Jun 19, 2015 10:04 pm

Thanks. I tried that and it worked.

Post Reply