Bonjour,
J'ai un type incompatible "image_test" dans "CopyFile" que je n'arrive pas à résoudre. Pouvez vous m'aider
Merci
(enregcollec.photo provient d'un type "record" et est sting[200] )
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 var image_photo:string; image_test:PAnsichar; begin image_photo:=enregcollec.photo; image_test:=PAnsiChar(image_photo); if FileExists(ExtractFilePath(Application.ExeName)+ 'photo-timbre/'+dossier+'/'+enregcollec.photo) then begin CopyFile(ExtractFilePath(Application.ExeName)+ 'photo-timbre/'+dossier+'/'+image_test,ExtractFilePath(Application.ExeName)+ 'image/'+enregcollec.photo)); end
Partager