DeleteFile (error)

Delphi

16/07/2008

Problema ao deletar arquivo
DeleteFile(getenvironmentVariable(´PROGRAMFILES´)+´\Diretório\´+´\arq.txt´);

error:
string and pansichar ?

:shock:


Psycho

Psycho

Curtidas 0

Respostas

Dedi

Dedi

16/07/2008

Basta fazer a conversão.
DeleteFile(Pchar(getenvironmentVariable(´PROGRAMFILES´)+´\Diretório\´+´\arq.txt´));



GOSTEI 0
Psycho

Psycho

16/07/2008

Thanks :wink:


GOSTEI 0
POSTAR