I got two forms (form_1 and form_2). I made a function inside body of form_1.
void ExampleFunction() {
ShowMessage("I'm example function inside form_1");
}
and I want to call it from form_2.
I tryed to add this function to header file of form_1.
public: // User declarations
__fastcall Tform_2(TComponent* Owner);
void ExampleFunction();
};
but when I want to call it from form_2, like :
form_2->ExampleFunction();
Builder gives me a error : "[ilink32 Error] Error: Unresolved external"
So how can I do it properly to make it work ?