Page 1 of 1

Cannot install TSysImageList into D2009

PostPosted: October 10th, 2009, 2:59 pm
by ckissi
Hello. I tried to install TsysImageList into D2009 but got several error messages.

[DCC Error] SysImg.pas(241): E2003 Undeclared identifier: 'dsTransparent'

[DCC Error] SysImg.pas(358): E2033 Types of actual and formal var parameters must be identical

Its the line where: DesktopFolder.ParseDisplayName(0, nil, WidePath, NumChars, PIDL, Flags); is located

Please advice. Thanx

Re: Cannot install TSysImageList into D2009

PostPosted: October 10th, 2009, 5:54 pm
by Kambiz
Are you sure you have installed the component properly? Because I have already installed TSysImageList in my Delphi 2009.

Here are the instructions to install the component: viewtopic.php?f=7&t=1430

Re: Cannot install TSysImageList into D2009

PostPosted: October 10th, 2009, 6:28 pm
by ckissi
Thanx for quick reply...
I downloaded it from here:
http://www.delphiarea.com/?dl_id=15

tried to install exactly how its in the manual. Same error. You can see it in attached picture.
Where the "dsTransparent" is defined ?

Re: Cannot install TSysImageList into D2009

PostPosted: October 10th, 2009, 9:41 pm
by Kambiz
I do believe DELPHIAREA.INC is neither in Delphi's search path nor in the component's folder.

Re: Cannot install TSysImageList into D2009

PostPosted: October 10th, 2009, 9:44 pm
by ckissi
Its exactly in the same folder as the SysImg.pas
And library path contains path where component is located: c:\components\all

Re: Cannot install TSysImageList into D2009

PostPosted: October 10th, 2009, 9:50 pm
by ckissi
There is no declaration for dsTransparent . I cannot find where its declared

Re: Cannot install TSysImageList into D2009

PostPosted: October 13th, 2009, 8:52 am
by Kambiz
Declaration for dsTransparent is in the base class, and depends on you Delphi version, the base class is either TCustomImageList or TImageList.

Code: Select all
{$IFDEF COMPILER4_UP}
TSysImageList = class(TCustomImageList)
{$ELSE}
TSysImageList = class(TImageList)
{$ENDIF}

You may have different version of DELPHIAREA.INC in your search path, and it causes COMPILER4_UP directive does not defined correctly. You are the only person not able to install this component on Delphi 2009.