Winexec takes the applicatoin name as a pChar so you need to cast your
delphi string to a windows pChar i.e
WinExec(pChar(drive+'apps\myapps\setup.exe'), SW_ShowNormal);
Robert Martin
Software Engineer
Wild Software Ltd
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Tuesday, September 04, 2001 11:02 AM
Subject: [DUG]: incompatible types
with this piece od code i get incompatible types pchar and strings
if ComboBox1.ItemIndex= 0 then WinExec(drive+'apps\myapps\setup.exe',
SW_ShowNormal);
...
Brendon Toogood
E-Mail [EMAIL PROTECTED]
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/