Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Derefeneces an array of pointers.

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
First I am a newbie..

I created an array of points in a sub dialog box. when I derefenced the array of points to acquire the info in the array it worked within that dialog box. However when I tried to derefence the array in the main dialog box I was unable to. The array only contained garbage. I was also able to retrieve other variables from the sub dialog box.

if (m_dNewArtist.DoModal() == IDOK)
{
for(int y =0; y<=50; y++)
{
if(m_dNewArtist.art[y] != NULL)
{
//m_dNewArtist is the subform
temp.operator = (m_dNewArtist.art[y]->getName());
//Same derefence works within the subform

m_ccboArt.AddString(temp);
}


Please help.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top