I'm using Delphi 4 (can't afford to upgrade) and I'm making a simple program that runs an external program with paramaters provided by the user. The problem is that the paramaters provided by the user are strings but WinExec needs a PChar. Can anyone tell me how I can get WinExec to accept a string or how I can convert the string into a PChar? Or perhaps another way of executing an external program which would accept a string? I've tried ShellExec which I saw mentioned in another post here but it doesn't work. It doesn't seem to recognize it.
0 · ·