ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Sample Installation of ChartDirector GUI Library interfacing with C++
Posted by Mog Obahor on Aug-08-2011 22:51
Hi all,
I am wondering if ChartDirector has a Graphical library that I can interface in a C++ developmental environment.  I am wanting to use the library mainly for plotting 2D and 3D data.  Please advise how I go about the installation to see if this is a tool I will like to purchase for what I intend on doing.
Regards,
Mog

  Re: Sample Installation of ChartDirector GUI Library interfacing with C++
Posted by Peter Kwan on Aug-09-2011 00:23
Hi Mog,

I assume you are referring to standard C++ (as opposed to Microsoft C++/CLI, which is a different language). For this case, you may use "ChartDirector for C++". See:

http://www.advsofteng.com/cdcpp.html

You may download it from our web site at:

http://www.advsofteng.com/download.html

Hope this can help.

Regards
Peter Kwan

  Re: Sample Installation of ChartDirector GUI Library interfacing with C++
Posted by Mog Obahor on Aug-09-2011 00:38
Hi Peter,

Thank you for the prompt response to my email note.
I am having a hardtime opening the file cppchartdir.chm that's in the chartdir_cpp_win64 package I downloaded from the website.  I want to see how the setup for the installation is done.  I don't know if the file is corrupted.
Please advice.
Mog

  Re: Sample Installation of ChartDirector GUI Library interfacing with C++
Posted by Mog Obahor on Aug-09-2011 04:45
Can you send me a pdf version of the documentation of how to set up the Visual Studio 2008 environment for ChartDirector.  For some reason, I cannot open the .chm file that came with the downloaded source code.  I want to try out the sample code before I purchase it.
Regards,
Mog

  Re: Sample Installation of ChartDirector GUI Library interfacing with C++
Posted by Peter Kwan on Aug-10-2011 00:11
Hi Mog,

For the CHM documentation, have you "unblock" the CHM file? Also, is the CHM file downloaded to a local drive (eg. c:\\) in your computer (as opposed to a network drive)?

In Microsoft Windows, all downloaded CHM files may need to be unblocked before they can be opened. Also, the downloaded CHM would need to be in a "trusted drive". such as the local hard disk. This behaviour is the same for all CHM files and is a standard Windows feature. If the download software comes with an installer, the installer probably will automatically do unblock the CHM. However, ChartDirector for C++ is distributed as a "zip" file without an installer, so you may need to unblock it.

See:

http://www.chartdir.com/forum/download_thread.php?bn=chartdir_support&thread=1237292586#N1243182891

Please kindly let me know if the above link can solve the problem.

If the above still cannot solve the problem, please notify me and I will create a PDF version of the help file for you. Also, I would apprepriate very much if you could inform me what is the error (may be a screen shot is helpful), to help us to determine how to fix the problem.

Regards
Peter Kwan

  Re: Sample Installation of ChartDirector GUI Library interfacing with C++
Posted by Mog on Aug-24-2011 00:29
Attachments:
Hi Peter,

I was able to get the installation document working.  But for some reason when I configure my "ChartDirector\\include" subdirectory by following the instruction on the manual: Selecting "Project/Properties" from the menu bar, go to "C/C++" -> "General", in the "Additional Include Directories" field. It does not work.
Also, I have the same issue when setting up the "Linking"
See the printscreen below.
compilation_and_linking_path.JPG

  Re: Sample Installation of ChartDirector GUI Library interfacing with C++
Posted by Peter Kwan on Aug-24-2011 02:09
Hi Mog,

I noticed from your screen shot that you are using "chartdir_cpp_win64", which is the 64-bit edition of ChartDirector for C++.

However, from your other thread in this forum, you seem to be using the pre-compiled version of QT from the official QT web site (instead of download the QT source code and compile QT yourself). As far as I know, all official pre-compiled QT on Windows is 32-bit. This means you are writing a 32-bit application. If this is the case, you would need to use the 32-bit edition of ChartDirector for C++.

Also, from your other thread, you seem to have successfully compiled the sample code, but not linking it. This means the include file is already working. (The include file is for compiling the code, while the "chartdir50.lib" is for linking.) One possible reason that linking is unsuccessful is that you are attempting to link a 32-bit application with a 64-bit "chartdir50.lib". Please use

If the above still does not solve the problem, would you mind to clarify what is the error message during compilation and/or linking?

Regards
Peter Kwan

  Re: Sample Installation of ChartDirector GUI Library interfacing with C++
Posted by Mog on Aug-24-2011 02:48
Can you point me to the link where I can get the source code for QT that I can compile in 64bit.

I will like to use the 64 bit version since my machine is mainly 64bits.

Thanks.
Mog

  Re: Sample Installation of ChartDirector GUI Library interfacing with C++
Posted by Mog on Aug-24-2011 07:06
How does ChartDirector differ from Qwt

http://qwt.sourceforge.net/index.html

  Re: Sample Installation of ChartDirector GUI Library interfacing with C++
Posted by Peter Kwan on Aug-25-2011 00:37
Hi Mog,

Whereas we are very familiar with ChartDirector, we are not familiar with Qwt, so it is hard for us to compare ChartDirector to Qwt.

We have included the key features of ChartDirector in our product page:

http://www.advsofteng.com/product.html

I have briefly read the web page of Qwt. My feeling is that its charting feature is not strong compared to ChartDirector (eg. it does not have that many chart type, may not allow synthesizing charts using layers, axis system may not be that flexible, may not have transparency support, may not have tooltips for data points, the API may not be that flexible, etc). However, Qwt includes some user controls that are not related to ChartDirector (such as knobs, sliders, etc).

Hope this can help.

Regards
Peter Kwan

  Re: Sample Installation of ChartDirector GUI Library interfacing with C++
Posted by Peter Kwan on Aug-25-2011 00:14
Hi Mog,

Note that QT is a product from Nokia and is not our product. For enquiry about QT (such as where to download QT, what editions are available, how to use and compile it, etc), you may want to send your enquiry to Nokia.

Anyway, I use google to search for "Download QT Source". The first link is "qt.nokia.com/downloads/" which does include instructions on how to download the QT source code.

Hope this can help.

Regards
Peter Kwan

  Re: Sample Installation of ChartDirector GUI Library interfacing with C++
Posted by Mog on Aug-25-2011 00:26
Thank you Peter.  You do such an excellent job in pointing people to the right direction.

Regards,
Mog