wael_r wrote:
in the first form1 i put "test fff;"
If you put test fff; in the form, then it's a member of the form class. So, you'd need to access it using an instance of the first form. If you want to share fff across all instances of form1 and form2, then you could make fff a static (or class-wide) member[^] of form1 - like this:
class Form1
{
// Other stuff
public: static test fff;
};
In Form1, you need to have a definition for fff (hte above is just the declaration like this:
test Form1::fff = { 1, 2 };
In form2, you can access it like this (I'm doing it in the constructor):
Form2::Form2()
{
this->other_variable = Form1::fff.i;
}
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p