jmp,je,jnzÔÚdelphiÖеÄд·¨
function myfun:integer;
var b:pointer;
begin
b:=pointer($6Bc3C6);
asm
mov eax,[eax]
xor eax,[ecx+4]
cmp eax,0
je @b
end;
ÕâÑùд±àÒë²»¹ýÈ¥¡£ÇëÎÊÈçºÎ²ÅÄÜд¡£»òÕßÓÐÆäËüʲô·½·¨
@b±¾À´¾ÍÊÇÒ»¸öÖ¸Õ룬ÄãÓÖ°ÑbÉè³ÉÖ¸Õ룬ÕâÊÇÖ¸ÏòÖ¸ÕëµÄÖ¸Õ룿ÄãµÄ±¾Òâ²»ÊÇÕâÑù°É
µÄÈ·ÊÇÕâÑù¡£µ«ÊÇΪʲôJMP B¿ÉÒÔ¡£ÓÃJE£¬JNZ¾Í²»ÐÐÁË¡£
»¹ÓÐÎÒÕâ¸öCALL¡£ÎÒ°ÑÎÒµÄDLL×¢ÈëÄ¿±ê½ø³Ìºó¡£edit.text:=inttohex(integer(@myfun),4);
µÃµ½µØÖ·¡£È»ºóÎÒ¸ú½øÕâ¸öCALLÈ¥¿´¡£Ôõô¸úÎÒDµÄCALLÀïÃæдµÄCALL²»Ò»ÑùÄØ£¿
Ïà¹ØÎÊ´ð£º
ÒÑÖªPython ÖУº
s = unicode("²âÊÔ", "gb2312")
s = u'\u6d4b\u8bd5'
print s
²âÊÔ
ÔÚDelphiÀïÃæÈçºÎ½«\u6d4b\u8bd5ÕâÑùµÄ»¹Ô³ÉGb2312µÄºº×ÖÄØ£¿
ÕÒµ½¸ö·½·¨
......
ÎÒÔÚÍøÉÏÕÒÁ˸ö¹ØÓÚIEBHOµÄ´úÂ룬Ȼºó°´ÕÕÄĸöÉèÖÃÁË£¬ºóÀ´ÔËÐеÄʱºò³öÏÖ
¹¹½¨
[¾¯¸æ] Project2.dpr(14): File not found: 'MYbho.TLB'
[¾¯¸æ] Project2.dpr(16): File not found: 'MYbho.RES'
......
ÎÒÔÚÍøÉÏÕÒÁ˸ö¹ØÓÚIEBHOµÄ´úÂ룬Ȼºó°´ÕÕÄĸöÉèÖÃÁË£¬ºóÀ´ÔËÐеÄʱºò³öÏÖ
[´íÎó] Unit1.pas(15): Undeclared identifier: 'GetTypeInfoCount'
[´íÎó] Unit1.pas(15): Undeclared identifier: 'GetTypeInfo ......
Ò»Ö±ÏëʹÓÃdll£¬µ«delphiµÄdll×Ó´°Ìå¾³£Óи÷ÖÖÎÊÌ⣬±ÈÈçÖ÷´°¿ÚÓëdll×Ó´°¿ÚµÄ½¹µãÎÊÌ⣬×Ó´°¿ÚÖпؼþµÄtab¼ü¡¢Èȼü¡¢enter¼üµÈµÄÎÊÌ⣬×Ó´°¿ÚÍ˳öµÄÎÊÌ⡢ƽÃæ°´Å¥ÎÊÌâµÈµÈ£¬ÍøÕ¾ÉϽøÐÐÁËËÑË÷£¬Ã»ÓбȽÏÍêÃÀµÄ½â¾ö· ......
º¯ÊýÔÐÍ£º
function ReadIC_GRBH(port: SmallInt; baud: LongInt; out_data: PChar): LongInt;
¶ÔÓ¦µÄjavaÊÇʲô£¿ÖصãÔÚout_data: PChar
Char
ÒýÓÃ
Char
´íÁË£¬Ó¦¸ÃÊÇString
ÓÃJNativeÈ¥µ÷dllµÄʱºòout ......