I have a form that has a button on it labeled Setup. I want to open Form2 when someone clicks on the setup button. Form2 allows the user to declare names and paths and writes that info to an ini file etc.
When Form1 loads in the project, it reads from the ini file.
I am using this:
void __fastcall TForm1::Button1Click(TObject *Sender)
{
if (Form2->ShowModal() == mrOk)
Close();
}
But I get an error that Form2 is an undefined symbol.
What am I doing wrong?
Thanks
fergmj
When Form1 loads in the project, it reads from the ini file.
I am using this:
void __fastcall TForm1::Button1Click(TObject *Sender)
{
if (Form2->ShowModal() == mrOk)
Close();
}
But I get an error that Form2 is an undefined symbol.
What am I doing wrong?
Thanks
fergmj