Jump to content
Software FX Community

Using ChartFX 2005 in managed C++(VC++ 8.0)


User (Legacy)

Recommended Posts

Posted

Hi,

I am trying to use ChartFX for VS 2005(trial version) in C++. i.e I am

developing a WinForms application in managed C++ (that comes in VS 2005).

However I am

encountering the following problem:

{

error C2686: cannot overload static and non-static member functions with the

same parameter types

c:\program files\chart fx for visual studio 2005\bin\chartfx.winforms.dll:

could be 'System::Resources::ResourceManager

^ChartFX::WinForms::Chart::a(System::String ^,System::Type ^)'

c:\program files\chart fx for visual studio 2005\bin\chartfx.winforms.dll:

or 'System::Resources::ResourceSet

^ChartFX::WinForms::Chart::a(System::String ^,System::Type ^)'

This diagnostic occurred while importing type 'ChartFX::WinForms::Chart '

from assembly 'ChartFX.WinForms, Version=7.0.2138.21696, Culture=neutral,

PublicKeyToken=a1878e2052c08dce'.

}

I had no problems using the older version ChartFX for .NET(ver 6.2) in

managed C++ WinForms. What could be the problem? I have included all

necessary 'References' in the project!

Thanks,

Rajendra

Posted

I tried in a Windows Form Project and did not get any errors, I got the 

chart showing inside the form.

All I did was create a new project, selected Visual C++ -> Windows Form

Application

Added ChartFX.WinForms.dll, ChartFX.WinForms.Base.dll and

ChartFX.WinForms.Adornments.dll to the references by doing right-click in

the solution explorer and selecting "References..."

The I added the following code to the InitializeComponent method of Form1:

ChartFX::WinForms::Chart ^chart = gcnew ChartFX::WinForms::Chart();

this->Controls->Add(chart);

--

Francisco Padron

www.chartfx.com

Posted

Hi,

Thank-you for the quick reply. But I am still facing the same problem and

not sure about the cause. Below are the version details of the tools I am

using: (I hope there is no problem wrt the version )

Visual Studio 2005 Version: 8.0.50727.42

.NET Framework Version: 2.0.50727

ChartFX Version: 7.0.2138.21696 (Trial Version)

I have implemented the ´WinForms´ application in C++ just as you have

described below. I have attached the ´buildlog´ that contains the errors and

also the file for the particular form application. Please let me know of a

workaround/solution for the same.

Thanks,

Raj

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:qIAkl5nBGHA.280@webserver3.softwarefx.com...

>I tried in a Windows Form Project and did not get any errors, I got the

>chart showing inside the form.

>

> All I did was create a new project, selected Visual C++ -> Windows Form

> Application

> Added ChartFX.WinForms.dll, ChartFX.WinForms.Base.dll and

> ChartFX.WinForms.Adornments.dll to the references by doing right-click in

> the solution explorer and selecting "References..."

>

> The I added the following code to the InitializeComponent method of Form1:

>

> ChartFX::WinForms::Chart ^chart = gcnew ChartFX::WinForms::Chart();

>

> this->Controls->Add(chart);

>

>

> --

> Francisco Padron

> www.chartfx.com

>

Posted

Found the problem, we were using an obfuscation flag not supported by C++, 

we have removed this flag from the build process, you may contact Software

FX support for a HotFix that has this change, otherwise the change will be

included in the next SP.

--

Francisco Padron

www.chartfx.com

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...