Another prob with Delphi ShellExecute

Posted by Andrew on August 30, 2005:

I'm having a problem with this:

ShellExecute(Form1.Handle,nil,TString,nil,nil,SW_SHOWMAXIMIZED)

where TString is a variable string.

Is there a way of having Delphi's ShellExecute with that variable? The Error i'm getting is: incompatible Types (String and PAnsiChar).

Please tell me if what I said is not clear enough.

Hope it can be solved
Thank you

Related Articles and Replies