|
-
March 15th, 2010, 02:19 AM
#1
Error message regarding pointer
Hi, i am making a form in visual C++ express edition...
I have these lines in my code:
int * SubTab;
SubTab = &this->tabControl2->SelectedIndex;
And I am getting this error message:
- '&' requires l-value
how can i do this?
Basically, i want to be able to change the value of this->tabControl2->SelectedIndex through the pointer. I want to be able to also change which tabcontrol is being changed. For example, later in my code i have:
SubTab = &this->tabControl3->SelectedIndex;
so the tabcontrol should change... however, it is not allowing this type of information
thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|