Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1083 - some errors with DemoProject for VS2005
Summary: some errors with DemoProject for VS2005
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Examples Demos (show other bugs)
Version: TeeChart.NET 2014 4.1.2014.12154
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
: 1084 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-01-12 23:24 EST by Shinobu Nagai
Modified: 2015-01-19 09:29 EST (History)
2 users (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments
some errors with DemoProject for VS2005 (47.23 KB, image/png)
2015-01-12 23:24 EST, Shinobu Nagai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shinobu Nagai 2015-01-12 23:24:21 EST
Created attachment 384 [details]
some errors with DemoProject for VS2005

If compiling DemoProject for VS2005, some error occur (see the attached image) and can't run it.
The error messages say ...

"(", ";" and ";" are required.
")" and "," are disabled.
Comment 1 sandra pazos 2015-01-14 08:06:41 EST
*** Bug 1084 has been marked as a duplicate of this bug. ***
Comment 2 Shinobu Nagai 2015-01-14 21:59:25 EST
Hello Sandra,

Are there any workaround for it? We'd like to release it without any compilation errors.
Comment 3 sandra pazos 2015-01-15 05:02:19 EST
Hello Nagai, 
The lambda expression (=>) is a feature introduced in C#3 and VS2005 use C#2. Therefore, it’s version of language of he VS2005 that causes the problem. A workaround is change the lambda expression: 
 public ClockGauge_Series() : base()
    {
      InitializeComponent();
      Load += (s, e) => { InitializeChart(); };
    }
For code below: 
public ClockGauge_Series() : base(
{
      InitializeComponent();

      Load += new EventHandler(ClockGauge_Series_Load);
}
void ClockGauge_Series_Load(object sender, EventArgs e)
{
          InitializeChart();
}