<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Am 2013-11-11 18:05, schrieb Richard Mace:<br>
    <blockquote
cite="mid:CAK+KT3_=PWPtcT3DpjeGyTOnemz4HJk9iULu6To49y5HbP6Tog@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif">Hi,<br>
          I am getting a compile error in Lazarus 1.0.12 FPC 2.6.2
          running on Windows XP:<br>
          Error: Wrong number of parameters specified for call to
          "CopyFile"When I am using the syntax<br>
        </div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif">CopyFile(SourceFile,DestFile);<br>
        </div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif">Both SourceFile
          and DestFile are strings.<br>
          Any ideas, as as far as I can see, at least one of the
          "CopyFile"s only requires the 2 parameters?<br>
        </div>
      </div>
    </blockquote>
    <br>
    Propably you have included the windows unit <br>
    which defines a CopyFile routine with 3 parameters:<br>
<a class="moz-txt-link-freetext" href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa363851%28v=vs.85%29.aspx">http://msdn.microsoft.com/en-us/library/windows/desktop/aa363851%28v=vs.85%29.aspx</a><br>
    <br>
    So either you remove the windows unit or, if not possible, <br>
    you need to fully qualify from which unit you want to call CopyFile
    (I don't know where it's defined).<br>
  </body>
</html>