Page 1 of 1

TeeChart for Delphi 2010

Posted: Fri Aug 28, 2009 2:09 pm
by 10546548
Hi there,

I have recently purchased the latest version of Delphi (Delphi 2010 professional). Is there any information when TeeChart 8 Pro (or later version) will be available for use in Delphi 2010?

regards,

jan lutgert

Re: TeeChart for Delphi 2010

Posted: Fri Aug 28, 2009 2:14 pm
by narcis
Hi jan,

We are currently working on it an we expect to be able to deliver a version soon. Hopefully in the next 2 weeks.

Re: TeeChart for Delphi 2010

Posted: Tue Sep 01, 2009 4:48 am
by 10052502
I am also interested to hear it is close but would also like to know if we can simply copy existing Delphi version folders and implement a manual installation of say Delphi 2009 packages into Delphi 2010?
Is there any way of retro fitting the existing Delphi 2009 package for use under Delphi 2010 ? Just thought I would ask the question so development can continue on our product line as well as we have just upgraded to Delphi 2010.

Thanks.

Re: TeeChart for Delphi 2010

Posted: Tue Sep 01, 2009 7:40 am
by narcis
Hi swesty,

If you are a sourcecode customer you could compile the packages manually using Delphi 2010 or we could even provide latest sources and TeeRecompile version so that you can do it automatically. Only having binary packages I'm afraid it won't work as they need to be compiled on each specific IDE version and they have dependencies over IDE's packages.

Re: TeeChart for Delphi 2010

Posted: Tue Sep 01, 2009 8:04 am
by 10052502
NarcĂ­s,

Ok thanks for the clarification. I should have thought about that before the question. I can now see the advantage of also getting the source code as part of the license.

Cheers.

Re: TeeChart for Delphi 2010

Posted: Tue Sep 01, 2009 8:09 am
by narcis
Hi swesty,

You're welcome.

If you are interested on upgrading your license you can contact our Sales Dept. at sales at steema dot com.

Re: TeeChart for Delphi 2010

Posted: Tue Sep 01, 2009 7:27 pm
by 10549958
I have found several problems with 8.05 and Delphi2010.
But the only blocking parts are some stuff in GIFImage.pas

First of all, you need to add some definitions for the Delphi2010 compiler
GIFImage.pas @ line 406 (Add the following lines)

Code: Select all

// 2009.09.01 ->
// Delphi 2010
  {$IFDEF VER210}
  {$WARN SYMBOL_PLATFORM OFF}
  {$DEFINE VER10_PLUS}
  {$DEFINE VER11_PLUS}
  {$DEFINE VER12_PLUS}
  {$DEFINE VER125_PLUS}
  {$DEFINE VER13_PLUS}
  {$DEFINE VER14_PLUS}
  {$DEFINE VER15_PLUS}
  {$DEFINE VER20_PLUS}
  {$DEFINE VER21_PLUS}
  {$DEFINE BAD_STACK_ALIGNMENT}
{$ENDIF}
// 2009.09.01 <-
The second thing you need to pay attention to is the use of "With" statements in Delphi2010, since it has become read only for some reason.
So at line 4782, where you can see the following code with a "With" statement:

Code: Select all

      with (Pal.palPalEntry[i]) do
      begin
        peRed := i;
        peGreen := i;
        peBlue  := i;
        peFlags := PC_NOCOLLAPSE;
      end;
You should change that to:

Code: Select all

       Pal.palPalEntry[i].peRed := i;
       Pal.palPalEntry[i].peGreen := i;
       Pal.palPalEntry[i].peBlue := i;
       Pal.palPalEntry[i].peFlags := PC_NOCOLLAPSE;
There are more positions in GIFImage.pas where this occurs.

Change that and you will be able to recompile 8.05 for Delphi2010.

There are however some major problems with the installation routine.
The installer of 8.05 seems to be writing to the wrong registry key "HKCU\Software\CodeGear\BDS\8.0" this should be "HKCU\Software\CodeGear\BDS\7.0"
You can fix this by manually editing the registry (I did an export on the faulty 8.0 key, changed the REG file in notepad so 8.0 becomes 7.0, and then imported it to the registry again)
WARNING, remember to add your existing data for "Search path", "Debug DCS Path" and "Browsing Path" before importing the reg file gain, otherwise you will overwrite your existing settings!!!
I also detected that the the recompile application doesnt handle long path names, so you might want to install into "C:\TeeChart" and run the recompiler from there.

Hope this helps someone until Steema has released a version that fully supports Delphi2010.

Re: TeeChart for Delphi 2010

Posted: Wed Sep 02, 2009 10:37 am
by 10553990
Hi,

Is the new version supporting Delphi 2010 going to be a maintenance version (e.g.: 8.0.6) or a new main version (9.x)?

Br,
Ferenc

Re: TeeChart for Delphi 2010

Posted: Wed Sep 02, 2009 10:41 am
by narcis
Hi Ferenc,

It will be a v8 release.

Re: TeeChart for Delphi 2010

Posted: Thu Sep 03, 2009 9:21 am
by narcis
Hello everyone,

Please notice that we have just released v8.06 which adds support for RAD Studio 2009. Version announcement can be found here:

http://www.teechart.net/support/viewtopic.php?t=10221

Re: TeeChart for Delphi 2010

Posted: Thu Sep 03, 2009 5:36 pm
by 10546565
MagnusF wrote: The second thing you need to pay attention to is the use of "With" statements in Delphi2010, since it has become read only for some reason.
I don't use the

Code: Select all

with
statement much but I couldn't believe this when I read it. So I tried a simple example:

Code: Select all

  TMyTestObj = class
  private
    FTestThis: string;
  public
    property TestThis: string read FTestThis write FTestThis;
  end;

...
procedure TForm41.FormCreate(Sender: TObject);
var
  lMO: TMyTestObj;
begin
  lMO := TMyTestObj.Create;
  try
    with lMO do
      TestThis := '123';

  finally
    lMO.Free;
  end;
end;
and this compiled just fine. I am not sure what you are seeing.

Ed Dressel

Re: TeeChart for Delphi 2010

Posted: Thu Sep 03, 2009 6:18 pm
by 10549958
TestAlways wrote: ...and this compiled just fine. I am not sure what you are seeing.
I agree, but there are some code that compiled on Delphi2009 (and previous versions) that no longer work for Delphi2010.
For example, if you put parenthesis around your "with" statement, members will become "read-only" within that block.

The following code will compile in Delphi2009, but not in Delphi2010.

Code: Select all

type

  TMyRecord = packed record
   First : integer;
   Second : integer;
  end;

  TMyRecArray = array[0..255] of TMyRecord;

  TCompRec = record
   ID : integer;
   Arr : TMyRecArray;
  end;

implementation

procedure TForm1.Button1Click(Sender: TObject);
var AMyRec : TCompRec;
    i : integer;
begin
 for i := 0 to 255 do begin
  with (AMyRec.Arr[i]) do
  begin
   First := i;
   Second := i;
  end;
 end;
end;

Simply removing the parentheses will help, something I missed when I wrote my previous post.

Conclusion: There are some changes between Delphi2010 and Delphi2009 regarding the With statement,
but it's probably a fix for a bug that did NOT make the members read-only in some corner cases when using parentheses.

/Magnus

Re: TeeChart for Delphi 2010

Posted: Thu Sep 03, 2009 6:55 pm
by 10546565
For example, if you put parenthesis around your "with" statement, members will become "read-only" within that block.
just curious: why would someone put parans around the object in a with statement?

Re: TeeChart for Delphi 2010

Posted: Thu Sep 03, 2009 6:58 pm
by 10549958
TestAlways wrote:just curious: why would someone put parans around the object in a with statement?
I have no idea, but it makes the members readonly, but the question is, why would anyone need that?