Visual ++ print from main with inheritance on visual form in listbox
Posted
by
captencrunch
on Stack Overflow
See other posts from Stack Overflow
or by captencrunch
Published on 2011-02-17T23:41:49Z
Indexed on
2011/02/23
23:24 UTC
Read the original article
Hit count: 353
I´ve made a "main" class lets call it A(Veichle), and i have two classes that inherits from A Lets call them B(Car) and C(MC). i also have a handler lets call it "D" that binds A,B and C. Then i have the Form1 class lets call that E(Visual)
I want to print out the private members from A on the visual form "E" in a Listbox
If i try ex)
this->listbox1->items->add(X.veichles[i]->getBrand());
it complains that veichles is a private member in D.
How can i get around that?
© Stack Overflow or respective owner