Try this: CopyFile('A:\Program.exe', PChar(PathStg));
Guy Brown
TimeMaster Systems
Colin Dillicar wrote:
>Hi all,
>
>Trouble is when I assign, for instance, 'C:\{directory}' to a string
>variable 'PathStg' and call MkDir(PathStg) the directory is created, but
>when I later try to copy a file from A:\ by using the construct -
>CopyFile('A:\Program.exe', PathStg); the compiler tells me that there are
>incompatible types 'String' and 'Pchar' in the command - Please, why is
>this ?
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"