Hi, sorry to ask such a stupid question, but I'm having problems getting FindFile demo to run in Delphi 2010.
I'm a very experienced Delphi developer (since 1985!!), but I almost never deal with installing or building components myself.
If I open the original DPR, then I immediately get the error :
- Code: Select all
Field MainForm.FindFile does not have a corresponding component. Remove the declaration? (Y/N/C/H)
Interestingly, if I answer "No", the project compiles fine, but of course I get an invalid access error as soon as I click the 'Find' button.
So, if I follow the D2009 instructions for building a package using the FindFile.pas source, then install that package, I get a new component tab called "Delphi Area" with the new component showing.
However... if I add the component to the form, it automatically names the component 'FindFile1'. If I try to rename it, it tells me the component declaration already exists. So if I comment out the
- Code: Select all
FindFile : TFindFile;
in the MainForm's class declaration, I can successfully rename the component. The project then compiles fine (as it does without the component, as described above).
However, then when I click 'Find' in the running application, nothing happens. Tracing the code, the component appears to be initialised, and performs a search, but uses null (empty) strings, not the strings entered in the main form's edit fields.
What am I doing wrong?
Again, I apologise for asking such a basic question; but without a good understanding of how components are supposed to work, and whether or not they need to be built when they obviously already exist in the calling source, is really confusticating for me!
Thanks in advance for any suggestions.
Oh, yeah, I'm running this on Win7 x64 Premium, on a Core i5 2.9GHz (Gigabyte Z68X-UD3H-B3 mobo), with 16G physical RAM and all bog-standard config settings.