BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ImageList->Draw() problem

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics)
View previous topic :: View next topic  
Author Message
hank
Guest





PostPosted: Fri Apr 14, 2006 7:03 am    Post subject: ImageList->Draw() problem Reply with quote



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





PostPosted: Fri Apr 14, 2006 8:03 am    Post subject: Re: ImageList->Draw() problem Reply with quote



"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





PostPosted: Mon Apr 17, 2006 1:03 am    Post subject: Re: ImageList->Draw() problem Reply with quote



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





PostPosted: Mon Apr 17, 2006 5:03 pm    Post subject: Re: ImageList->Draw() problem Reply with quote

"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





PostPosted: Tue Apr 18, 2006 4:03 am    Post subject: Re: ImageList->Draw() problem Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.