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
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