Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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ÖеÄUnicodeÔÚDelphiÈçºÎ»¹Ô­³ÉGb2312£¿

ÒÑÖªPython ÖУº
s = unicode("²âÊÔ", "gb2312")
s = u'\u6d4b\u8bd5'
print s
²âÊÔ

ÔÚDelphiÀïÃæÈçºÎ½«\u6d4b\u8bd5ÕâÑùµÄ»¹Ô­³ÉGb2312µÄºº×ÖÄØ£¿
ÕÒµ½¸ö·½·¨
......

delphi activx µÄÎÊÌâ 110·Ö

ÎÒÔÚÍøÉÏÕÒÁ˸ö¹ØÓÚIEBHOµÄ´úÂ룬Ȼºó°´ÕÕÄĸöÉèÖÃÁË£¬ºóÀ´ÔËÐеÄʱºò³öÏÖ
¹¹½¨
  [¾¯¸æ] Project2.dpr(14): File not found: 'MYbho.TLB'
  [¾¯¸æ] Project2.dpr(16): File not found: 'MYbho.RES' ......

delphi activx µÄÎÊÌâ 110·Ö

ÎÒÔÚÍøÉÏÕÒÁ˸ö¹ØÓÚIEBHOµÄ´úÂ룬Ȼºó°´ÕÕÄĸöÉèÖÃÁË£¬ºóÀ´ÔËÐеÄʱºò³öÏÖ 
[´íÎó] Unit1.pas(15): Undeclared identifier: 'GetTypeInfoCount'
[´íÎó] Unit1.pas(15): Undeclared identifier: 'GetTypeInfo ......

delphiµÄdll×Ó´°ÌåÎÊÌâµÄ½â¾ö - Delphi / ·Ç¼¼ÊõÇø

Ò»Ö±ÏëʹÓÃdll£¬µ«delphiµÄdll×Ó´°Ìå¾­³£Óи÷ÖÖÎÊÌ⣬±ÈÈçÖ÷´°¿ÚÓëdll×Ó´°¿ÚµÄ½¹µãÎÊÌ⣬×Ó´°¿ÚÖпؼþµÄtab¼ü¡¢Èȼü¡¢enter¼üµÈµÄÎÊÌ⣬×Ó´°¿ÚÍ˳öµÄÎÊÌ⡢ƽÃæ°´Å¥ÎÊÌâµÈµÈ£¬ÍøÕ¾ÉϽøÐÐÁËËÑË÷£¬Ã»ÓбȽÏÍêÃÀµÄ½â¾ö· ......

ÇóÖú£¬delphi¶ÔÓ¦µÄjavaÀàÐÍ

º¯ÊýÔ­ÐÍ£º
function ReadIC_GRBH(port: SmallInt; baud: LongInt; out_data: PChar): LongInt;
¶ÔÓ¦µÄjavaÊÇʲô£¿ÖصãÔÚout_data: PChar
Char

ÒýÓÃ
Char
´íÁË£¬Ó¦¸ÃÊÇString

ÓÃJNativeÈ¥µ÷dllµÄʱºòout ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ