Results 1 to 4 of 4

Thread: Can't compile, incompatible types : String and PResStringRec

  1. #1
    Senior Member Lodewijk's Avatar
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,934

    Can't compile, incompatible types : String and PResStringRec

    [Error] NLDFileSearch.pas(737): Incompatible types: 'String' and 'PResStringRec'
    [Fatal Error] NLDFileSearchD6D.dpk(36): Could not compile used unit 'NLDFileSearch.pas'

    Krijg ik als ik een van de 2 packages wil compilen/installen (maakt niet uit welke)...

    Op de volgende code :
    Code:
    procedure TNLDFileSearch.Search();
    begin
      if not DirectoryExists(FPath) then
        raise EFOpenError.Create('The specified Path does not exist!');
    
      EnumFiles(FPath + FMask, FOptions);
    end;
    Op de dikgedrukte regel komt de error ...

    [edit]NLDFileSearch1.2.1 heb ik het dus over [/edit]

  2. #2
    Kom dat nu tegen, exact dezelfde vraag
    DeX 3 Delphi := The ease of VB with the power of C; Zoekt en gij zult vinden

  3. #3
    Senior Member Lodewijk's Avatar
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,934
    Danke

  4. #4
    Verander de code gewoon naar dit:

    Code:
    procedure TNLDFileSearch.Search();
    begin
      if not DirectoryExists(FPath) then
        raise EFOpenError.CreateFmt ('%s',['The specified Path does not exist!']);
    
      EnumFiles(FPath + FMask, FOptions);
    end;

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •