lundi 30 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 processing 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(AnsiString(editbox.Text), but to no avail.


Can anyone assist me with this problem please.


Aucun commentaire:

Enregistrer un commentaire