Link to home
Start Free TrialLog in
Avatar of eNarc
eNarcFlag for United Kingdom of Great Britain and Northern Ireland

asked on

following error happened and I dont know why?

Hi the following error happened and I dont know why?

anyway of converting or anything

[DCC Error] MySQL.pas(2228): E2010 Incompatible types: 'AnsiChar' and 'Char'
function mysql_kill(mysql:PMysql;pid:longint):longint;
var buff:string[3];
begin
     buff[0]:=chr(pid AND $FF);//<-----------------ERROR-----------------
     buff[1]:=chr((pid shr 8) AND $FF);
     buff[2]:=chr((pid shr 16) AND $FF);
     buff[3]:=chr((pid shr 24) AND $FF);
     result:=simple_command(mysql,COM_PROCESS_KILL,@buff,4,false);
end;

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Todd Mummert
Todd Mummert

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of MerijnB
MerijnB
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial