pd is a guideline to the begin of the array. Pd is an facet of the array.In this case, you woulduse the "." operator rather of the "->" operator.
You are watching: Expression must have pointer to object type
Why do you think there are 8 aspects in the array?
pd has form pointer to PictureBoxArray. Why perform you think it consists of a member named Visible? The code in AddNewPictureBox would imply not.
Why room you deleting storage allocated through gcnew?


I think the you should specify a different property:
public: residential or commercial property PictureBox^ default


This details routine deals with 8 aspects only. Pictureboxes have actually a residential or commercial property Visible. The storage deletion is component of a destructor - ns hadn"t removed all unnecessary code.
In the code you posted, pd points come a single PictureBoxArray. As far as pd is concerned, the is range of one element, no eight.
While a PictureBox has a member called Visible, pd points to a PictureBoxArray which is a different type of object 보다 a PictureBox. Look at at just how member clearly shows is supplied in your function AddNewPictureBox.
Friday, might 3, 2019 4:51 PM

0
sign in to vote
This specific routine faces 8 facets only. Pictureboxes have actually a residential or commercial property Visible. The storage deletion is component of a destructor - i hadn"t eliminated all unnecessary code.
In the password you posted, pd points to a single PictureBoxArray. As far as pd is concerned, that is selection of one element, not eight.
While a PictureBox has actually a member named Visible, pd points come a PictureBoxArray which is a different form of object 보다 a PictureBox. Watch at just how member visible is offered in your function AddNewPictureBox.
Maybe I have not definedPictureBoxArray correctly. Have the right to I define a course as one array? I had assumed: windy CollectionBase would have taken care of that.
Friday, might 3, 2019 5:36 PM
all replies
0
sign in to poll
pd is a tip to the start of the array. Pd is an facet of the array.In this case, girlfriend woulduse the "." operator instead of the "->" operator.
Why execute you think there are 8 aspects in the array?
pd has type pointer to PictureBoxArray. Why execute you think it contains a member named Visible? The code in AddNewPictureBox would suggest not.
Why space you deleting memory allocated with gcnew?
Friday, might 3, 2019 1:33 PM
0
sign in to vote
I think that you should define a various property:
public: residential property PictureBox^ default
Friday, may 3, 2019 3:46 PM
0
authorize in to vote
This specific routine deals with 8 facets only. Pictureboxes have actually a property Visible. The memory deletion is part of a destructor - i hadn"t removed all unnecessary code.
In the password you posted, pd points to a solitary PictureBoxArray. As far as pd is concerned, the is an array of one element, not eight.
While a PictureBox has actually a member named Visible, pd points come a PictureBoxArray i beg your pardon is a different kind of object than a PictureBox. Look at at how member clearly shows is supplied in your duty AddNewPictureBox.
Friday, may 3, 2019 4:51 PM
0
sign in to vote
This certain routine deals with 8 elements only. Pictureboxes have actually a building Visible. The storage deletion is part of a destructor - ns hadn"t gotten rid of all unnecessary code.
In the password you posted, pd points come a solitary PictureBoxArray. As far as pd is concerned, the is selection of one element, not eight.
While a PictureBox has actually a member named Visible, pd points to a PictureBoxArray which is a different kind of object 보다 a PictureBox. Look at how member clearly shows is provided in your role AddNewPictureBox.
See more: Those Aren'T You Will Be Too Much For Some People Those Aren'T Your
Maybe I have not definedPictureBoxArray correctly. Have the right to I define a course as one array? I had actually assumed: public CollectionBase would have taken treatment of that.
Friday, might 3, 2019 5:36 PM
Dev centers
finding out resources
community
support
programs
United says (English)
