 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
hank Guest
|
Posted: Fri Apr 14, 2006 7:03 am Post subject: ImageList->Draw() problem |
|
|
Hi ALL:
I use ImageList->Draw(canvas,xstart,ystart,0,dsNormal,itMask,true), when
compilier show error message:
E2015 Ambiguity between 'dsNormal' and 'Extctrls::dsNormal'
E2285 Could not find a match for 'TCustomImageList::Draw(TCanvas
*,float,float,int,TTBDrawingStyle,TImageType,bool)'
I check HELP and find that:
Class
TCustomImageList
Syntax
[C++] void Draw (TCanvas * Canvas, int X, int Y, int Index, TDrawingStyle
ADrawingStyle, TImageType AImageType, bool Enabled);
How can I sove this problem ?
Thanks. |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Fri Apr 14, 2006 8:03 am Post subject: Re: ImageList->Draw() problem |
|
|
"hank" <deepsleep (AT) ms65 (DOT) url.com.tw> wrote in message
news:443f4649$1 (AT) newsgroups (DOT) borland.com...
| Quote: | E2015 Ambiguity between 'dsNormal' and 'Extctrls::dsNormal'
|
The error is self-explanatory. There are two separate namespaces that
define the same name 'dsNormal' and the compiler does not know which one you
meant to use. You need to qualify the namespace, ie:
ImageList->Draw(..., Imglist::dsNormal, ...),
Gambit |
|
| Back to top |
|
 |
hank Guest
|
Posted: Mon Apr 17, 2006 1:03 am Post subject: Re: ImageList->Draw() problem |
|
|
| Quote: | "hank" <deepsleep (AT) ms65 (DOT) url.com.tw> wrote in message
news:443f4649$1 (AT) newsgroups (DOT) borland.com...
E2015 Ambiguity between 'dsNormal' and 'Extctrls::dsNormal'
The error is self-explanatory. There are two separate namespaces that
define the same name 'dsNormal' and the compiler does not know which one
you
meant to use. You need to qualify the namespace, ie:
ImageList->Draw(..., Imglist::dsNormal, ...),
Gambit
I use TCustomImageList::dsNormal or TImageList::dsNormal, |
the error message:
E2015 Ambiguity between 'dsNormal' and 'Extctrls::dsNormal'
E2451 Undefined symbol 'dsNormal'
But the way, the project is create by BCB6.0 and now open by BDS2006. |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Mon Apr 17, 2006 5:03 pm Post subject: Re: ImageList->Draw() problem |
|
|
"hank" <deepsleep (AT) ms65 (DOT) url.com.tw> wrote in message
news:4442de4f$1 (AT) newsgroups (DOT) borland.com...
| Quote: | I use TCustomImageList::dsNormal or TImageList::dsNormal,
|
Neither of those are correct. You need to use the namespace, not the class
name, to quality the value's name. I gave you the correct name earlier:
Imglist::dsNormal
TImageList is declared in the "Imglist" namespace.
Gambit |
|
| Back to top |
|
 |
hank Guest
|
Posted: Tue Apr 18, 2006 4:03 am Post subject: Re: ImageList->Draw() problem |
|
|
Thanks.
--
劉協理
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> 撰寫於郵件新聞:4443c781$1 (AT) newsgroups (DOT) borland.com...
| Quote: |
"hank" <deepsleep (AT) ms65 (DOT) url.com.tw> wrote in message
news:4442de4f$1 (AT) newsgroups (DOT) borland.com...
I use TCustomImageList::dsNormal or TImageList::dsNormal,
Neither of those are correct. You need to use the namespace, not the
class
name, to quality the value's name. I gave you the correct name earlier:
Imglist::dsNormal
TImageList is declared in the "Imglist" namespace.
Gambit
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|