rowgram
November 8th, 2005, 04:12 PM
I can't figure out what 's wrong here :
Inside the 'tester' namespace, I've added textBox4 into Form2 :
tester::Form2::textBox4->set_Text("hi");
this gives me : Form2.h(650): error C2227: left of '->set_Text' must point to class/struct/union
type is ''
When I'm inside the Form2 class definition, I can use textBox4->set_Text without any problems; so how should I call Windows controls (like textboxes, buttons, etc..) outside of the definition of their Windows Form ??
Arie
Inside the 'tester' namespace, I've added textBox4 into Form2 :
tester::Form2::textBox4->set_Text("hi");
this gives me : Form2.h(650): error C2227: left of '->set_Text' must point to class/struct/union
type is ''
When I'm inside the Form2 class definition, I can use textBox4->set_Text without any problems; so how should I call Windows controls (like textboxes, buttons, etc..) outside of the definition of their Windows Form ??
Arie