title: Error While using the CopyFile function
body: <p>Hello I am using the <code>CopyFile</code> function in Delphi 5. But the file is not getting copied to destination. I am not able to see error also. What is the best way to know why <code>CopyFile</code> is failing?</p>
  
  <pre><code>if CopyFile(source, dest, false) then
    ShowMessage('Success')
  else
    ShowMessage('Error');
  </code></pre>
  
  <p>I am getting displayed error always. :(</p>