Incompatible types: 'string' and 'PAnsiChar' PLEASE HELP! 300pts
Posted on 2006-07-06
how to i fix this?
i have a variable 'IPAddress' which is a string which i would like to use as follows:
WinExec('mstsc /v ' + IPAddress + ' /f',sw_ShowNormal);
but i get the following error ---> Incompatible types: 'string' and 'PAnsiChar'.
I think i need to use a pointer or typecast but i think i feel asleep in the lecture at that stage!