Have you included the needed .h files where the dialogs are?
On the other hand... you directly do:
[quote]
String ImeFajla;
FILE *fp;
void __fastcall TForm7::Open1Click(TObject *Sender)
{
Memo1->Clear();
OpenDialog1->Execute();
FILE *fp;
fp = ...
[quote]
and you should do the same with the dialogs as with the
FILE* fp
, I mean...
CMemoDialog*
(or whatever the name of your class is)
Memo1;
COpenDialog* OpenDialog1;
If you are doing it (it is not in the snippet you posted) probably you are having conflicts with "global" and "local" definitions.
For instance, in the part of your code that I quote, you have a
File* fp
out of the function, and then another one inside the function. The one inside the function doesn't have to be the same as the other because you are using it locally. But the
String ImeFajla
is just declared at the beginning and then used in the functions, that's the reason you don't get an error for it.