samedi 28 mars 2015

Cmd String to PAnsiChar in delphi

I am relatively new to Delphi and I want to make a quick application the uses the ShellExecute command.


I want to use string values in edit boxes to add to the command line for doing the prcessing job outside of the application.


Everything works fine, but i get the error : "Incompatible types: String and PAnsiChar" I have tried to convert it using: "Variable := PAnsiChar(AnsiChar(editbox.Text)" , but to no avail.


Can anyone assist me with this problem please.


Aucun commentaire:

Enregistrer un commentaire