pd is a tip to the begin of the array. Pd is an facet of the array.In this case, girlfriend woulduse the "." operator rather of the "->" operator.

You are watching: Expression must have pointer-to-object type

Why perform you think there space 8 aspects in the array?

pd has type pointer come PictureBoxArray. Why do you think it has a member named Visible? The code in AddNewPictureBox would indicate not.

Why space you deleting storage allocated v gcnew?


*

*

I think that you should define a different property:

public: property PictureBox^ default PictureBox ^ get( int index ) return (PictureBox^)List; void set( int index, PictureBox ^ worth ) List = value;


*

*

This certain routine encounters 8 elements only. Pictureboxes have actually a residential or commercial property Visible. The memory deletion is component of a destructor - i hadn"t gotten rid of all unnecessary code.

In the password you posted, pd points to a single PictureBoxArray. As far as pd is concerned, the is range of one element, no eight.

While a PictureBox has actually a member named Visible, pd points to a PictureBoxArray i beg your pardon is a different form of object 보다 a PictureBox. Look at just how member visible is offered in your role AddNewPictureBox.


Friday, might 3, 2019 4:51 PM
*

0
sign in to vote

This details routine deals with 8 facets only. Pictureboxes have a home Visible. The storage deletion is part of a destructor - i hadn"t removed all unnecessary code.

In the code you posted, pd points come a single PictureBoxArray. As much as pd is concerned, that is selection of one element, no eight.

While a PictureBox has actually a member named Visible, pd points to a PictureBoxArray i m sorry is a different form of object than a PictureBox. Watch at how member visible is used in your role AddNewPictureBox.

Maybe I have actually not definedPictureBoxArray correctly. Have the right to I define a course as an array? I had actually assumed: public CollectionBase would have taken treatment of that.


Friday, may 3, 2019 5:36 PM

all replies


0
authorize in to vote

pd is a tip to the begin of the array. Pd is an element of the array.In this case, girlfriend woulduse the "." operator rather of the "->" operator.

Why do you think there space 8 aspects in the array?

pd has type pointer come PictureBoxArray. Why execute you think it consists of 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 different property:

public: residential property PictureBox^ default PictureBox ^ get( int table of contents ) return (PictureBox^)List; void set( int index, PictureBox ^ value ) List = value;


Friday, might 3, 2019 3:46 PM
0
authorize in to vote

This details routine encounters 8 elements only. Pictureboxes have a residential or commercial property Visible. The storage deletion is part of a destructor - ns hadn"t removed all unnecessary code.

In the password 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 named Visible, pd points to a PictureBoxArray i m sorry is a different kind of object than a PictureBox. Look at at just how member visible is offered in your function AddNewPictureBox.


Friday, might 3, 2019 4:51 PM
0
sign in to vote

This certain routine encounters 8 facets only. Pictureboxes have a building Visible. The memory deletion is part of a destructor - ns hadn"t gotten rid of all unnecessary code.

In the code you posted, pd points to a single PictureBoxArray. As far as pd is concerned, that is an array of one element, no eight.

While a PictureBox has actually a member named Visible, pd points come a PictureBoxArray i m sorry is a different type of object 보다 a PictureBox. Look at exactly how member clearly shows is provided in your duty AddNewPictureBox.

See more: How To Make Rainbow Six Siege Takes Forever To Load In, I Take Forever To Load In

Maybe I have actually not definedPictureBoxArray correctly. Have the right to I specify a course as an array? I had actually assumed: windy CollectionBase would have actually taken treatment of that.


Friday, might 3, 2019 5:36 PM
Dev centers
finding out resources
community
support
program
United claims (English)
*