I've created a class called "RDAindividual" with get and set properties. I read data from my database, and create a new object "user". What is confusing me is that inside the "while", I can retrieve my data using the get property, but outside the while I cannot...... I get compile errors. I don't understand, I thought that dynamic variables created with "new" were saved in the heap and not garbage collected, or maybe I'm just using the scope resolution operator wrong. What is wrong?
RDAindividual *user = new RDAindividual(
MessageBox::Show(user->get_RDAItem2().ToString(), S"Test1"); // Inside "while" this works
} // end while
MessageBox::Show(RDAindividual::user->get_RDAItem2().ToString(), S"Test2"); // Outside "while" get compile