Get ImageTool.exe Path

#1
I'm wondering how to get Text content of TEdit from another Form? Because I need to get the path of ImageTool.exe in a Form and use it in another one, in order to use in a small tool I'm working on these days

I have Button1 on Form1 which will show me a message that contains the content of Edit1->Text that is found in Form2.

Code: (C++)
Code:
#include <Windows.h>
...............
void __fastcall TForm1::Button1Click(TObject *Sender)
{
MessageBox(NULL,(LPCTSTR)Form2->Edit1->Text.w_str(),NULL,MB_OK);
}
It gives me an empty message. Someone help please?

Using: Embarcadero C++ Builder 10 Seattle



****************** Edit: Solved the problem after declaring the Form2 on Form1.h *********************************

Another question please:
Is there any function that can copy the whole folder (not just 1 file) ?
The CopyFile function can only copy one file at once. I need to find a way to copy multiple files at the same time.

Please help!
 
Last edited:
Top