ÓÑÇéÌáʾ£ºÈç¹û±¾ÍøÒ³´ò¿ªÌ«Âý»òÏÔʾ²»ÍêÕû£¬Çë³¢ÊÔÊó±êÓÒ¼ü¡°Ë¢Ð¡±±¾ÍøÒ³£¡ÔĶÁ¹ý³Ì·¢ÏÖÈκδíÎóÇë¸æËßÎÒÃÇ£¬Ð»Ð»£¡£¡ ±¨¸æ´íÎó
ÈÙÒ«µç×ÓÊé ·µ»Ø±¾ÊéĿ¼ ÎÒµÄÊé¼Ü ÎÒµÄÊéÇ© TXTÈ«±¾ÏÂÔØ ½øÈëÊé°É ¼ÓÈëÊéÇ©

windows»·¾³ÏÂ32λ»ã±àÓïÑÔ³ÌÐòÉè¼Æ-µÚÕÂ

°´¼üÅÌÉÏ·½Ïò¼ü ¡û »ò ¡ú ¿É¿ìËÙÉÏÏ·­Ò³£¬°´¼üÅÌÉ쵀 Enter ¼ü¿É»Øµ½±¾ÊéĿ¼ҳ£¬°´¼üÅÌÉÏ·½Ïò¼ü ¡ü ¿É»Øµ½±¾Ò³¶¥²¿£¡
¡ª¡ª¡ª¡ªÎ´ÔĶÁÍꣿ¼ÓÈëÊéÇ©ÒѱãÏ´μÌÐøÔĶÁ£¡



ÊýÊýÁ¿µÄ¼ì²é¹¤×÷£¬Èç¹û´øµÄ²ÎÊýÊýÁ¿ºÍÉùÃ÷ʱµÄÊýÁ¿²»·û£¬±àÒëÆ÷»á±¨´í£º

error¡¡A2137£º¡¡too¡¡few¡¡arguments¡¡to¡¡INVOKE

±àÒëʱ¿´µ½ÕâÑùµÄ´íÎ󱨸棬Ê×ÏÈÒª¼ì²éµÄÊÇÓÐûÓÐÉÙдÁËÒ»¸ö²ÎÊý¡£¶ÔÓÚ²»´ø²ÎÊýµÄAPIµ÷Óã¬invokeαָÁîµÄ²ÎÊý¼ì²é¹¦ÄÜ¿ÉÓпÉÎÞ£¬ËùÒԼȿÉÒÔÓÃcall¡¡API_NameÕâÑùµÄÓï·¨Ò²¿ÉÒÔÓÃinvoke¡¡API_NameÕâÑùµÄÓï·¨¡£

2¡£¡¡APIº¯ÊýµÄ·µ»ØÖµ

ÓеÄAPIº¯ÊýÓзµ»ØÖµ£¬ÈçMessageBox¶¨ÒåµÄ·µ»ØÖµÊÇintÀàÐ͵ÄÊý£¬·µ»ØÖµµÄÀàÐͶԻã±à³ÌÐòÀ´ËµÒ²Ö»ÓÐdwordÒ»ÖÖÀàÐÍ£¬ËüÓÀÔ¶·ÅÔÚeaxÖС£Èç¹ûÒª·µ»ØµÄÄÚÈݲ»ÊÇÒ»¸öeaxËùÄÜÈÝÄɵģ¬Win32¡¡API²ÉÓõķ½·¨Ò»°ãÊÇ·µ»ØÒ»¸öÖ¸Õ룬»òÕßÔÚµ÷ÓòÎÊýÖÐÌṩһ¸ö»º³åÇøµØÖ·£¬¸É´à°ÑÊý¾ÝÖ±½Ó·µ»Øµ½»º³åÇøÖÐÈ¥¡£



¡¡
À´Ô´£ºµç×Ó¹¤Òµ³ö°æÉç¡¡×÷ÕߣºÂÞÔƱò¡¡ÉÏÒ»Ò³¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡»ØÊéÄ¿¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÏÂÒ»Ò³¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
ÉÏÒ»Ò³¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡»ØÊéÄ¿¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÏÂÒ»Ò³¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
¡¡¡¡


µÚ3Õ¡¡Ê¹ÓÃMASM


3¡£2¡¡µ÷ÓÃAPI£¨2£©

¡¡¡¡¡¡¡¡
3¡£¡¡º¯ÊýµÄÉùÃ÷

ÔÚµ÷ÓÃAPIº¯ÊýµÄʱºò£¬º¯ÊýÔ­ÐÍÒ²±ØÐëÔ¤ÏÈÉùÃ÷£¬·ñÔò£¬±àÒëÆ÷»á²»ÈÏÕâ¸öº¯Êý¡£invokeαָÁîÒ²ÎÞ·¨¼ì²é²ÎÊý¸öÊý¡£ÉùÃ÷º¯ÊýµÄ¸ñʽÊÇ£º

º¯ÊýÃû¡¡proto¡¡£§¾àÀ룧¡¡£§ÓïÑÔ£§¡¡£§²ÎÊý1£§£ºÊý¾ÝÀàÐÍ£¬£§²ÎÊý2£§£ºÊý¾ÝÀàÐÍ£¬¡­¡­

¾äÖеÄprotoÊǺ¯ÊýÉùÃ÷µÄαָÁ¾àÀë¿ÉÒÔÊÇNEAR£¬FAR£¬NEAR16£¬NEAR32£¬FAR16»òFAR32£¬Win32ÖÐÖ»ÓÐÒ»¸öƽ̹µÄ¶Î£¬ÎÞËùν¾àÀ룬ËùÒÔÔÚ¶¨ÒåʱÊǺöÂԵģ»ÓïÑÔÀàÐ;ÍÊÇ¡¡¡£modelÄÇЩÀàÐÍ£¬Èç¹ûºöÂÔ£¬ÔòʹÓá¡¡£model¶¨ÒåµÄĬÈÏÖµ¡£

ºóÃæ¾ÍÊDzÎÊýµÄÁбíÁË£¬¶ÔWin32»ã±àÀ´ËµÖ»´æÔÚdwordÀàÐ͵IJÎÊý£¬ËùÒÔËùÓвÎÊýµÄÊý¾ÝÀàÐÍÓÀÔ¶ÊÇdword£¬ÁíÍâ¶ÔÓÚ±àÒëÆ÷À´Ëµ£¬ËüÖ»¹ØÐIJÎÊýµÄÊýÁ¿£¬²ÎÊýµÄÃû³ÆÔÚÕâÀïÊÇ¡°ÎÞÓᱵģ¬½öÊÇΪÁ˿ɶÁÐÔ¶øÉèÖõģ¬¿ÉÒÔÊ¡ÂÔµô£¬ËùÒÔÏÂÃæÁ½¾äÏûÏ¢¿òº¯ÊýµÄ¶¨Òåʵ¼ÊÉÏÊÇÒ»ÑùµÄ£º

MessageBox¡¡¡¡Proto¡¡¡¡hWnd£ºdword£»lpText£ºdword£»lpCaption£ºdword£»uType£ºdword

MessageBox¡¡¡¡Proto¡¡¡¡£ºdword£»£ºdword£»£ºdword£»£ºdword

ÔÚWin32»·¾³ÖУ¬ºÍ×Ö·û´®Ïà¹ØµÄAPI¹²ÓÐÁ½À࣬·Ö±ð¶ÔÓ¦Á½¸ö×Ö·û¼¯£ºÒ»ÀàÊÇ´¦Àí¡¡ANSI¡¡×Ö·û¼¯µÄ£¬ÁíÒ»ÀàÊÇ´¦Àí¡¡Unicode¡¡×Ö·û¼¯µÄ¡£Ç°Ò»ÀຯÊýÃû×ÖµÄβ²¿´øÒ»¸ö¡°A¡±×Ö·û£¬´¦ÀíUnicodeµÄÔò´øÒ»¸ö¡°W¡±×Ö·û¡£ÎÒÃDZȽÏÊìϤµÄANSI×Ö·û´®ÊÇÒÔ¡¡NULL¡¡½áβµÄÒ»´®×Ö·ûÊý×飬ÿһ¸öANSI×Ö·ûÕ¼Ò»¸ö×Ö½Ú¿í¡£¶ÔÓÚÅ·ÖÞÓïÑÔÌåϵ£¬ANSI¡¡×Ö·û¼¯ÒÑ×ã¹»ÁË£¬µ«¶ÔÓÚÓгÉǧÉÏÍò¸ö²»Í¬×Ö·ûµÄ¼¸ÖÖ¶«·½ÓïÑÔÌåϵÀ´Ëµ£¬Unicode¡¡×Ö·û¼¯¸üÓÐÓá£Ã¿Ò»¸öUnicode×Ö·ûÕ¼Á½¸ö×ֽڵĿí¶È£¬ÕâÑùÒ»À´¾Í¿ÉÒÔÔÚÒ»¸ö×Ö·û´®ÖÐʹÓÃ65¡¡336¸ö²»Í¬µÄ×Ö·ûÁË¡£

MessageBoxºÍÏÔʾ×Ö·û´®Óйأ¬Í¬ÑùËüÓÐÁ½¸ö°æ±¾£¬ÑϸñµØ˵£¬ÏµÍ³ÖÐÓÐÁ½¸ö¶¨Ò壺

MessageBoxA¡¡¡¡Proto¡¡¡¡hWnd£ºdword£»lpText£ºdword£»lpCaption£ºdword£»uType£ºdword

MessageBoxW¡¡¡¡Proto¡¡¡¡hWnd£ºdword£»lpText£ºdword£»lpCaption£ºdword£»uType£ºdword

ËäÈ»¡¶Microsoft¡¡Win32¡¡Programmer's¡¡Reference¡·ÖÐÖ»ÓÐÒ»¸öMessageBox¶¨Ò壬µ«User32¡£dllÖÐȷȷʵʵûÓÐMessageBox£¬¶øÖ»ÓÐMessageBoxAºÍMessageBoxW£¬ÄÇôΪʲô»¹ÊÇ¿ÉÒÔʹÓÃMessageBoxÄØ£¿Êµ¼ÊÉÏÔÚ³ÌÐòµÄÍ·Îļþuser32¡£incÖÐÓÐÒ»¾ä£º

MessageBox¡¡¡¡¡¡¡¡¡¡¡¡equ¡¡¡¡¡¡¡¡¡¡

Ëü°ÑMessageBox͵Áº»»Öù±ä³ÉÁËMessageBoxA¡£ÔÚÔ´³ÌÐòÖмÌÐøÑØÓÃMessageBoxÊÇ¡¡¡¡ÎªÁ˳ÌÐòµÄ¿É¶ÁÐÔÒÔ¼°±£³ÖºÍÊÖ²áµÄÒ»ÖÂÐÔ£¬µ«¶ÔÓÚ±àÒëÆ÷À´Ëµ£¬Êµ¼ÊÊÇÔÚʹÓÃMessageBoxA¡£

ÓÉÓÚ²¢²»ÊÇÿ¸öWin32ϵͳ¶¼Ö§³ÖWϵÁеÄAPI£¬ÔÚWindows¡¡9xϵÁÐÖУ¬¶ÔUnicodeÊDz»Ö§³ÖµÄ£¬ºÜ¶àµÄAPIÖ»ÓÐANSI°æ±¾£¬Ö»ÓÐWindows¡¡NTϵÁвŶÔUnicodeÍêÈ«Ö§³Ö¡£ÎªÁ˱àдÔÚ¼¸¸öƽ̨ÖÐͨÓõijÌÐò£¬Ò»°ãÓ¦ÓóÌÐò¶¼Ê¹ÓÃANSI°æ±¾µÄAPIº¯Êý¼¯¡£

ΪÁËʹ³ÌÐò¸üÓÐÒÆÖ²ÐÔ£¬ÔÚÔ´³ÌÐòÖÐÒ»°ã²»Ö±½ÓÖ¸Ã÷ʹÓÃUnicode»¹ÊÇANSI°æ±¾£¬¶øÊÇʹÓúê»ã±àÖеÄÌõ¼þ»ã±à¹¦ÄÜÀ´Í³Ò»Ìæ»»£¬ÈçÔÚÔ´³ÌÐòÖÐʹÓÃMessagebox£¬µ«ÔÚÍ·ÎļþÖж¨Ò壺

if¡¡¡¡¡¡¡¡¡¡¡¡UNICODE

¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡MessageBox¡¡¡¡¡¡¡¡¡¡¡¡equ¡¡¡¡¡¡¡¡¡¡

else

¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡MessageBox¡¡¡¡¡¡¡¡¡¡¡¡equ¡¡¡¡¡¡¡¡¡¡

endif

ËùÓÐÉæ¼°°æ±¾ÎÊÌâµÄAPI¶¼¿ÉÒÔ°´´Ë·½·¨¶¨Ò壬ȻºóÔÚÔ´³ÌÐòµÄÍ·²¿Ö¸¶¨UNICODE=1»òUNICODE=0£¬ÖØбàÒëºó¾ÍÄܲúÉú²»Í¬µÄ°æ±¾¡£

4£®includeÓï¾ä

¶ÔÓÚËùÓÐÒªÓõ½µÄAPIº¯Êý£¬ÔÚ³ÌÐòµÄ¿ªÊ¼²¿·Ö¶¼±ØÐëÔ¤ÏÈÉùÃ÷£¬µ«ÕâÒ»¸ö²½ÖèÏÔÈ»ÊDZȽÏÂé·³µÄ£¬ÎªÁ˼ò»¯²Ù×÷£¬¿ÉÒÔ²ÉÓø÷ÖÖÓïÑÔͨÓõĽâ¾ö°ì·¨£¬¾ÍÊÇ°ÑËùÓеÄÉùÃ÷Ô¤ÏÈ·ÅÔÚÒ»¸öÎļþÖУ¬ÔÚÓõ½µÄʱºòÔÙÓÃincludeÓï¾ä°üº¬½øÀ´¡£ÏÖÔڻص½Win32¡¡Hello¡¡World³ÌÐò£¬Õâ¸ö³ÌÐòÓõ½ÁËÁ½¸öAPIº¯Êý£ºMessageBoxºÍExitProcess£¬ËüÃÇ·Ö±ðÔÚUser32¡£dllºÍKernel32¡£dllÖУ¬ÔÚMASM32¹¤¾ß°üÖÐÒѾ­°üÀ¨ÁËËùÓÐDLLµÄAPIº¯ÊýÉùÃ÷ÁÐ±í£¬Ã¿¸öDLL¶ÔÓ¦Îļþ£¬ÔÚÔ´³ÌÐòÖÐֻҪʹÓÃincludeÓï¾ä°üº¬½øÀ´¾Í¿ÉÒÔÁË£º

include¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡user32¡£inc

include¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡kernel32¡£inc

µ±Óõ½ÆäËûµÄAPIº¯Êýʱ£¬Ö»ÐèÏàÓ¦Ôö¼Ó¶ÔÓ¦µÄincludeÓï¾ä¡£

includeÓï¾ä»¹ÓÃÀ´ÔÚÔ´³ÌÐòÖаüº¬±ðµÄÎļþ£¬µ±¶à¸öÔ´³ÌÐòÓõ½ÏàͬµÄº¯Êý¶¨Òå¡¢³£Á¿¶¨Ò壬ÉõÖÁÔ´´úÂëʱ£¬¿ÉÒÔ°ÑÏàͬµÄ²¿·Öд³ÉÒ»¸öÎļþ£¬È»ºóÔÚ²»Í¬µÄÔ´³ÌÐòÖÐÓÃincludeÓï¾ä°üº¬½øÀ´¡£

±àÒëÆ÷¶ÔincludeÓï¾äµÄ´¦Àí½öÊǼòµ¥µØ°ÑÕâÒ»ÐÐÓÃÖ¸¶¨µÄÎļþÄÚÈÝÌæ»»µô¶øÒÑ¡£

includeÓï¾äµÄÓï·¨ÊÇ£º

¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡include¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÎļþÃû

»ò¡¡¡¡¡¡¡¡¡¡¡¡¡¡include¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡

µ±Óöµ½Òª°üÀ¨µÄÎļþÃûºÍMASMµÄ¹Ø¼ü×ÖͬÃûµÈ¿ÉÄÜ»áÒýÆð±àÒëÆ÷»ìÏýµÄÇé¿öʱ£¬¿ÉÒÔÓý«ÎļþÃûÀ¨ÆðÀ´¡£

5¡£¡¡includelibÓï¾ä

ÔÚDOS»ã±àÖУ¬Ê¹ÓÃÖжϵ÷ÓÃϵͳ¹¦ÄÜÊDz»±ØÉùÃ÷µÄ£¬´¦ÀíÆ÷×Ô¼ºÖªµÀµ½ÖжÏÏòÁ¿±íÖÐȥȡÖжϵØÖ·¡£ÔÚWin32»ã±àÖÐʹÓÃAPIº¯Êý£¬³ÌÐò±ØÐëÖªµÀµ÷ÓõÄAPIº¯Êý´æÔÚÓÚÄĸöDLLÖУ¬·ñÔò£¬²Ù×÷ϵͳ±ØÐëËÑË÷ϵͳÖдæÔÚµÄËùÓÐDLL£¬²¢ÇÒÎÞ·¨´¦Àí²»Í¬DLLÖеÄͬÃûº¯Êý£¬ÕâÏÔÈ»ÊDz»ÏÖʵµÄ£¬ËùÒÔ£¬±ØÐëÓиöÎļþ°üÀ¨DLL¿âÕýÈ·µÄ¶¨Î»ÐÅÏ¢£¬Õâ¸öÈÎÎñÊÇÓɵ¼Èë¿âÀ´ÊµÏֵġ£

ÔÚʹÓÃÍⲿº¯ÊýµÄʱºò£¬DOSÏÂÓк¯Êý¿âµÄ¸ÅÄÄÇʱµÄº¯Êý¿âʵ¼ÊÉÏÊǾ²Ì¬¿â£¬¾²Ì¬¿âÊÇÒ»×éÒѾ­±àдºÃµÄ´úÂëÄ£¿é£¬ÔÚ³ÌÐòÖпÉÒÔ×ÔÓÉÒýÓã¬ÔÚÔ´³ÌÐò±àÒë³ÉÄ¿±êÎļþ£¬×îºóÒªÁ´½Ó³É¿ÉÖ´ÐÐÎļþµÄʱºò£¬ÓÉlink³ÌÐò´Ó¿âÖÐÕÒ³öÏàÓ¦µÄº¯Êý´úÂ룬һÆðÁ´½Óµ½×îºóµÄ¿ÉÖ´ÐÐÎļþÖС£DOSÏÂCÓïÑԵĺ¯Êý¿â¾ÍÊǵäÐ͵ľ²Ì¬¿â¡£¿âµÄ³öÏÖΪ³ÌÐòÔ±½ÚÊ¡ÁË´óÁ¿µÄ¿ª·¢Ê±¼ä£¬È±µã¾ÍÊÇÿ¸ö¿ÉÖ´ÐÐÎļþÖж¼°üÀ¨ÁËÒªÓõ½µÄÏàͬº¯ÊýµÄ´úÂ룬ռÓÃÁË´óÁ¿µÄ´ÅÅ̿ռ䣬ÔÚÖ´ÐеÄʱºò£¬ÕâЩ´úÂëͬÑùÖظ´Õ¼ÓÃÁ˱¦¹óµÄÄÚ´æ¡£

Win32»·¾³ÖУ¬³ÌÐòÁ´½ÓµÄʱºòÈÔȻҪʹÓú¯Êý¿âÀ´¶¨Î»º¯ÊýÐÅÏ¢£¬Ö»²»¹ýÓÉÓÚº¯Êý´úÂë·ÅÔÚDLLÎļþÖУ¬¿âÎļþÖÐÖ»ÁôÓк¯ÊýµÄ¶¨Î»ÐÅÏ¢ºÍ²ÎÊýÊýÄ¿µÈ¼òµ¥ÐÅÏ¢£¬ÕâÖÖ¿âÎļþ½Ð×öµ¼Èë¿â£¬Ò»¸öDLLÎļþ¶ÔÓ¦Ò»¸öµ¼Èë¿â£¬ÈçUser32¡£dllÎļþÓÃÓÚ±à³ÌµÄµ¼Èë¿âÊÇUser32¡£lib£¬MASM32¹¤¾ß°üÖаüº¬ÁËËùÓÐDLLµÄµ¼Èë¿â¡£

ΪÁ˸æËßÁ´½Ó³ÌÐòʹÓÃÄĸöµ¼Èë¿â£¬Ê¹ÓõÄÓï¾äÊÇ£º

¡¡¡¡¡¡¡¡¡¡¡¡includelib¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¿âÎļþÃû

»ò¡¡¡¡¡¡¡¡includelib¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡

ºÍincludeµÄÓ÷¨Ò»Ñù£¬ÔÚÒª°üÀ¨ÈñàÒëÆ÷»ìÏýµÄÎļþÃûʱ¼Ó·½À¨ºÅ¡£Win32¡¡Hello¡¡world³ÌÐòÓõ½µÄÁ½¸öAPIº¯ÊýMessageBoxºÍExitProcess·Ö±ðÔÚUser32¡£dllºÍKernel32¡£dllÖУ¬ÄÇôÔÚÔ´³ÌÐòʹÓõÄÏàÓ¦Óï¾äΪ£º

includelib¡¡¡¡¡¡¡¡¡¡¡¡user32¡£lib

includelib¡¡¡¡¡¡¡¡¡¡¡¡kernel32¡£lib

ºÍincludeÓï¾äµÄ´¦Àí²»Í¬£¬includelib²»»á°Ñ¡¡¡£libÎļþ²åÈëµ½Ô´³ÌÐòÖУ¬ËüÖ»ÊǸæËßÁ´½ÓÆ÷ÔÚÁ´½ÓµÄʱºòµ½Ö¸¶¨µÄ¿âÎļþÖÐÈ¥ÕÒ¶øÒÑ¡£

3¡£2¡£3¡¡¡¡API²ÎÊýÖеĵÈÖµ¶¨Òå

ÔٻعýÍ·À´¿´ÏÔʾÏûÏ¢¿òµÄÓï¾ä£º

invoke¡¡¡¡MessageBox£»NULL£»offset¡¡szText£»offset¡¡szCaption£»MB_OK

ÔÚuTypeÕâ¸ö²ÎÊýÖÐʹÓÃÁËMB_OK£¬Õâ¸öMB_OKÊÇʲôÒâ˼ÄØ£¬ÏÈÀ´¿´¡¶Microsoft¡¡Win32¡¡Programmer's¡¡Reference¡·ÖеÄ˵Ã÷£º

uType¡¡¡ª¡ª¡¡¶¨Òå¶Ô»°¿òµÄÀàÐÍ£¬Õâ¸ö²ÎÊý¿ÉÒÔÊÇÒÔϱêÖ¾µÄºÏ¼¯£º

Òª¶¨ÒåÏûÏ¢¿òÉÏÏÔʾ°´Å¥£¬ÓÃÏÂÃæµÄijһ¸ö±êÖ¾£º

MB_ABORTRETRYIGNORE¡¡¡ª¡ª¡¡ÏûÏ¢¿òÓÐÈý¸ö°´Å¥£º¡°ÖÕÖ¹¡±£¬¡°ÖØÊÔ¡±ºÍ¡°ºöÂÔ¡±

MB_HELP¡¡¡ª¡ª¡¡ÏûÏ¢¿òÉÏÏÔʾһ¸ö¡°°ïÖú¡±°´Å¥£¬°´Ïºó·¢ËÍWM_HELPÏûÏ¢

MB_OK¡¡¡ª¡ª¡¡ÏûÏ¢¿òÉÏÏÔʾһ¸ö¡°È·¶¨¡±°´Å¥£¬ÕâÊÇĬÈÏÖµ

MB_OKCANCEL¡¡¡ª¡ª¡¡ÏûÏ¢¿òÉÏÏÔʾÁ½¸ö°´Å¥£º¡°È·¶¨¡±ºÍ¡°È¡Ïû¡±

MB_RETRYCANCEL¡¡¡ª¡ª¡¡ÏûÏ¢¿òÉÏÏÔʾÁ½¸ö°´Å¥£º¡°ÖØÊÔ¡±ºÍ¡°ºöÂÔ¡±

MB_YESNO¡¡¡ª¡ª¡¡ÏûÏ¢¿òÉÏÏÔʾÁ½¸ö°´Å¥£º¡°ÊÇ¡±ºÍ¡°·ñ¡±

MB_YESNOCANCEL¡¡¡ª¡ª¡¡ÏûÏ¢¿òÉÏÏÔʾÈý¸ö°´Å¥£º¡°ÊÇ¡±¡¢¡°·ñ¡±ºÍ¡°È¡Ïû¡±

¡¡

ÒªÔÚÏûÏ¢¿òÖÐÏÔʾͼ±ê£¬ÓÃÏÂÃæµÄijһ¸ö±êÖ¾£º

MB_ICONWARNING¡¡¡ª¡ª¡¡ÏÔʾ¾ªÌ¾ºÅͼ±ê

MB_ICONINFORMATION¡¡¡ª¡ª¡¡ÏÔʾÏûϢͼ±ê

MB_ICONASTERISK¡¡¡ª¡ª¡¡ÏÔʾΣÏÕͼ±ê

MB_ICONQUESTION¡¡¡ª¡ª¡¡ÏÔʾÎʺÅͼ±ê

MB_ICONSTOP¡¡¡ª¡ª¡¡ÏÔʾֹͣͼ±ê

¡­¡­



ÕâЩÊÇuType²ÎÊý˵Ã÷ÖеÄһС°ë£¬¿ÉÒÔ¿´³ö£¬²ÎÊýÖпÉÒÔÓõÄÖµÓкܶàÖÖ£¬ÈÃÎÒÃÇ»»Ò»¸öÖµÊÔÊÔ¿´£¬°ÑÓï¾ä¸ÄΪ£º

invoke¡¡MessageBox£»NULL£»offset¡¡szText£»offset¡¡szCaption£»¡¡MB_ICONWARNING¡¡or¡¡MB_YESNO

ÔÙ±àÒëÖ´Ðп´£¬ÆÁÄ»ÉϳöÏÖÁËÒ»¸ö²»Ò»ÑùµÄÏûÏ¢¿ò£¬Èçͼ3¡£3Ëùʾ¡
·µ»ØĿ¼ ÉÏÒ»Ò³ ÏÂÒ»Ò³ »Øµ½¶¥²¿ ÔÞ£¨0£© ²È£¨0£©
δÔĶÁÍꣿ¼ÓÈëÊéÇ©ÒѱãÏ´μÌÐøÔĶÁ£¡
ÎÂÜ°Ìáʾ£º ο´Ð¡ËµµÄͬʱ·¢±íÆÀÂÛ£¬Ëµ³ö×Ô¼ºµÄ¿´·¨ºÍÆäËüС»ï°éÃÇ·ÖÏíÒ²²»´íŶ£¡·¢±íÊéÆÀ»¹¿ÉÒÔ»ñµÃ»ý·ÖºÍ¾­Ñé½±Àø£¬ÈÏÕæдԭ´´ÊéÆÀ ±»²ÉÄÉΪ¾«ÆÀ¿ÉÒÔ»ñµÃ´óÁ¿½ð±Ò¡¢»ý·ÖºÍ¾­Ñé½±ÀøŶ£¡