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

Message ListMessage List     Post MessagePost Message

  create a Chart and menu strip using Windows Application Form
Posted by Armando de Jesus Galicia Silva on Aug-30-2012 06:29
Hi All,

This is my first post and I'm interested in using your graphic tool, I already download a
chartdir_cpp_win64 package and use the mfcdemo -> Zoomscrolltrack project to develop
my application. I already modify that project an do some things and works perfect!! but I
want to add some toolbox items to enhance my Project. Don't know why I can't add more
toolbox Items specially the Menustrip.

Here What I find:

  mfcdemo -> Zoomscrolltrack project is using Dialog instead Windows Form Application

  I create a new project using Windows Form Application insted MFC, and... don?t know
how to add a new chart and CHARTDIRECTOR control in my toolbox.

So two questions:

1. How can I add Menu strips and all windows .net framework tools in my toolbox using your
demo?

2. If I need to create a new project, I want Windows Form Application, How I can setup
this using your chartdirector power graphic tool??


Please Help , And thanks in advance!


-Armando

  Re: create a Chart and menu strip using Windows Application Form
Posted by Peter Kwan on Aug-30-2012 23:32
Hi Armando de Jesus Galicia Silva,

ChartDirector for C++ is for standard C++.

Windows Forms is based on the .NET platform, and is incompatible with standard C++. If you are using Windows Forms, you may be using a different language called C++/CLI. The C++/CLI is one of the .NET languages (the others are C#, VB.NET ...). It is a Microsoft proprietary language and is not the same as standard C++. If you would like to use any .NET languages, such as C++/CLI with Windows Forms, please use "ChartDirector for .NET" instead. With "ChartDirector for .NET", you can put a ChartDirector Windows Forms control on the Visual Studio toolbox.

Note that in "ChartDirector for .NET", we only include sample code written in VB.NET and C#. If you would like to use C++/CLI, you would need to translate the sample code from C# to C++. The methods are exactly the same, but the syntax is different. For example, in C#, we use "c.setPlotArea(....)". while in C++/CLI it becomes "c->setPlotArea(....)". The following has an example that demonstrate translating the "Simple Bar Chart" sample code from C# to C++/CLI:

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

Hope this can help.

Regards
Peter Kwan

  Re: create a Chart and menu strip using Windows Application Form
Posted by Armando de Jesus Galicia Silva on Aug-31-2012 07:13
Already download ChartDirector for .NET and works perfect! Thanks Peter.

-Armando