I guess nocuttree is complaining about the error message when compiling:
unit1.pas(xx,xx) Error: Incompatible type for arg no. 1: Got "AnsiString", expected "PChar"
So, an immediate quick and dirty fix would be:
application.messagebox(pchar(s),'!!!',0);
or to use ShowMessage, as already proposed by Mike.Cornflake.