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 

Reference and Progressbar->Position

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





PostPosted: Sun Jan 15, 2006 4:45 am    Post subject: Reference and Progressbar->Position Reply with quote



Dear user of the group,

I have the following problem: I cannot create a reference to
ProgressBar->Position.

The code causing the problem looks as follows:
int& x = ProgressBar1->Max;
As a result of compilation I get the following warning:
W8028 temporary used to initialize x.

ProgressBar1->Position is supposed to be of type int,
but it somehow is not so in result I get the warning.
Some temporary wariable is created and used to initialize x.

My question is, what is the exact type of ProgressBar->Position.

I can alternatively use also pointer to ProgressBar->Position,
but &(ProgressBar->Position) doesn't work.

Any suggestions?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL) 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.