MessageBoxA هي API تحتاج PChar ليس Delphi's internal string
الرد هو اظافة لكود اخي tf6m
PHP كود :
var
S,_S: String;
begin
{*
MessageBoxA MessageBoxA is an API function
it uses PChar and not Delphi's internal string ...!
*}
S := 'D4A';
_s:='Test';
try
Asm
PushAd
Xor al,al
@Loop:Cmp al,2//nLop
JE @ExitpRoc
PushAd
//MessageBoxA (0,PAnsiChar(_s),PAnsiChar(s),0);
push dword ptr 0
push dword ptr _s // MessageBox Title
push dword ptr s // MessageBox Text
push dword ptr 0
Call MessageBoxA
PopAd
Inc al
Jmp @Loop
@ExitpRoc:PopAd
End;
except
Exit;
end;

