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

·­ÒëÒ»°ëµÄDelphi»ã±à°ïÖú

 The built-in assembler allows you to write assembly code within Delphi programs. It has the following features:
ÄÚǶµÄ»ã±àÆ÷ÔÊÐíÔÚdelphi³ÌÐòÖÐÊéд»ã±à´úÂ룬ËûÓÐÈçÏÂÌØÐÔ£º
Allows for inline assembly
ÔÊÐíÄÚǶ»ã±à
    Supports all instructions found in the Intel Pentium III, Intel MMX extensions, Streaming SIMD
 Extensions (SSE), and the AMD Athlon (including 3D Now!)
Ö§³ÖËùÓÐÖ¸ÁÈçÓ¢ÌØ¶û±¼Èý´¦ÀíÆ÷£¬Ó¢ÌضûMMXÀ©Õ¹£¬Streaming SIMDÀ©Õ¹£¨SSE£©£¬ÒÔ¼°AMD Athlon´¦ÀíÆ÷£¨°üÀ¨3D£©
    Provides no macro support, but allows for pure assembly function procedures
²»ÌṩºêÖ§³Ö£¬µ«ÔÊÐí´¿»ã±àº¯Êý¹ý³Ì
    Permits the use of Delphi identifiers, such as constants, types, and variables in assembly statements
ÔÊÐíʹÓÃdelphi±êʶ·û£¬ÖîÈçÔÚ»ã±à¶ÎÄڵij£Á¿£¬ÀàÐͺͱäÁ¿
As an alternative to the built-in assembler, you can link to object files that contain external procedures and functions. See External declarations for more information.
µ±Ìæ´úÄÚÖûã±àµÄʱºò£¬Äã¿ÉÒÔÁ´½Óµ½Ò»¸ö°üº¬ÓÐÍⲿ¹ý³ÌºÍº¯ÊýµÄÄ¿±êÎļþ¡£¸ü¶àµÄÐÅÏ¢²é¿´ÍⲿÉùÃ÷¡£
Note
×¢Ò⣬Èç¹ûÄãÓÐÍⲿ»ã±à´úÂ룬ÄãÏë°ÑËüÃÇÓÃÔÚÄãµÄÓ¦ÓóÌÐòÖУ¬ÄãÒª¿¼ÂÇÔÚDelphiÖÐÖØÐ´Ëû£¬»òÕß×îµ×Ï޶ȵÄʹÓÃÄÚǶ»ã±àÀ´ÊµÏÖ¡£
If you have external assembly code that you want to use in your applications, you should consider rewriting it in the Delphi language or minimally reimplement it using the inline assembler.
The built-in assembler is accessed through asm statements, which have the form
ÄÚǶ»ã±àͨ¹ýasm±êʶ·ûÀ´´æ´¢£¬Ê¹ÓÃend¶ÎÀ´½áÊø¡£
asm statementList end
where statementList is a sequence of assembly statements separated by semicolons, end-of-line characters, or Delphi comments.
»ã±à¶ÎʹÓ÷ֺÅÀ´·Ö¸î»ã±à´úÂë¶Î£¬×Ö·ûµÄĩβ¿ÉÒÔʹÓÃdelphi×¢ÊÍ¡£
Comments in an asm statement must be in Delphi style. A semicolon does not indicate that the rest of the line is a comment.
ÄÚǶ»ã±àµÄ×¢ÊͱØÐëÊÇdelphiµÄ·ç¸ñ£¬·ÖºÅ²¢²»Äܱíʾµ±Ç°ÐÐÊ£Óಿ·Ö¾ÍÊÇ×¢ÊÍ¡£
The reserved word inline and the directive assembler are


Ïà¹ØÎĵµ£º

DELPHIµÄÖ¸Õë

´ó¼Ò¶¼ÈÏΪ£¬CÓïÑÔÖ®ËùÒÔÇ¿´ó£¬ÒÔ¼°Æä×ÔÓÉÐÔ£¬ºÜ´ó²¿·ÖÌåÏÖÔÚÆäÁé»îµÄÖ¸ÕëÔËÓÃÉÏ¡£Òò´Ë£¬ËµÖ¸ÕëÊÇCÓïÑÔµÄÁé»ê£¬Ò»µã¶¼²»Îª¹ý¡£Í¬Ê±£¬ÕâÖÖ˵·¨Ò²ÈúܶàÈ˲úÉúÎó½â£¬ËƺõÖ»ÓÐCÓïÑÔµÄÖ¸Õë²ÅÄÜËãÖ¸Õë¡£Basic²»Ö§³ÖÖ¸Õ룬Ôڴ˲»ÂÛ¡£Æäʵ£¬PascalÓïÑÔ±¾ÉíÒ²ÊÇÖ§³ÖÖ¸ÕëµÄ¡£´Ó×î³õµÄPascal·¢Õ¹ÖÁ½ñµÄObject Pascal£¬¿ÉÒÔ˵ÔÚÖ¸ÕëÔËÓ ......

DelphiÁ¬½ÓSQL Server 2000

Ò»¡¢ÔÚDelphi7ÖÐÁ¬½ÓMS SQL Server 2000µÄ·½·¨¡£
¸Õ¿ªÊ¼Ê±½çÃæÈçÏ£ºÌí¼Ó4¸ö¿Ø¼þ¡£
ÉèÖÿؼþÊôÐÔ¹ý³Ì£º
1¡¢ADOConnection1ÉèÖÃ
1£©Ë«»÷ADOConnection1£¬½øÐÐÉèÖÃÁ¬½Ó×Ö·û´®£¨×÷ÓÃÊÇ£ºÑ¡È¡Á¬½ÓÇý¶¯·½Ê½ºÍÁ¬½ÓµÄÊý¾Ý¿âÉèÖã©¡£¹ý³ÌÈçÏÂͼËùʾ£º
2¡¢ADOQuery1ÉèÖ㺠
1£©ADOQuery1.connectionÊôÐÔΪADOConnection1; ......

delphi»ñµÃÍø¿¨µÄMACµØÖ·


 
»ñµÃÍø¿¨µÄMACµØÖ·ÔÚºÜ¶àµØ·½¶¼ÓкܴóµÄÓô¦,ÏÂÃæµÄº¯ÊýÒÔXX-XX-XX-XX-XX-XX µÄ¸ñʽ·µ»ØÔ¶³Ì»ò±¾µØ»úÆ÷µÄMACµØÖ·¡£
Function to return the MAC address of a remote or local machine in the format XX-XX-XX-XX-XX-XX
·µ»ØµÄMACµØÖ·ÊÇÒ»¸öÄÜÓÃÔÚ¶à¸ö·½ÃæµÄΨһ±êʶ¡£Ê¹Ó÷½·¨£º
ShowMessage(GetMacAddress( ......

DelphiÏÂÉú³ÉMapÎļþ·½·¨£¬Ãâɱ»òµ÷ÊÔÓõÄ

 ÒÔǰ¿´ÁË Í¨¹ý±ÀÀ£µØÖ·ÕÒ´íÎóÐÐÊýÖ®VC°æ ÄÇʱºò»¹Ã»ÓÃDELPHI
×òÍí¸ÕºÃÓÖ¿´µ½ÁË ËùÒÔ¾ÍÊÔÁËÒ»ÏÂDELPHIµÄ£¬Óë´ó¼Ò¹²Ïí ^_^
ʲôÊÇ MAP Îļþ£¿¼òµ¥µØ½²£¬ MAP ÎļþÊdzÌÐòµÄÈ«¾Ö·ûºÅ¡¢Ô´ÎļþºÍ´úÂëÐкÅÐÅÏ¢µÄΨһµÄÎı¾±íʾ·½·¨£¬Ëü¿ÉÒÔÔÚÈκεط½¡¢ÈκÎʱºòʹÓ㬲»ÐèÒªÓжîÍâµÄ³ÌÐò½øÐÐÖ§³Ö¡£¶øÇÒ£¬ÕâÊÇΨһÄÜÕÒ³ö³Ì ......

Using COM+ object pooling with Delphi 6

 URL: http://edn.embarcadero.com/article/27568
Abstract: Delphi 6 introduces support for COM+ object pooling, which can provide significant performance improvements under some circumstances. We take a look at Delphi 6s object pooling support. By Vincent Parrett.
Typically, when a client appl ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ