VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: GetProfileInt(Îļþ´¦Àí)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:38:36 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ catchy Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Sat Apr 8 01:56:39 2000) WWW-POST
GetProfileInt
VBÉùÃ÷
Declare Function GetProfileInt Lib "kernel32" Alias "GetProfileIntA" (ByVal
lpAppName As String, ByVal lpKeyName As String, ByVal nDefault As Long) As
Long
˵Ã÷
È¡µÃwin.ini³õʼ»¯ÎļþÖÐÖ¸¶¨ÌõÄ¿µÄÒ»¸öÕûÊýÖµ
·µ»ØÖµ
Long£¬ÕÒµ½ÌõÄ¿µÄÖµ£»ÈçÖ¸¶¨µÄÌõĿδÕÒµ½£¬¾Í·µ»ØĬÈÏÖµ¡£ÈçÕÒµ½µÄÊý×Ö²»ÊÇÒ»¸öºÏ·¨
µÄÕûÊý£¬º¯Êý¾Í»á·µ»ØÆäÖкϷ¨µÄÒ»²¿·Ö¡£ÀýÈ磬¶ÔÓÚ¡°xyz=55zz¡±Õâ¸öÌõÄ¿£¬º¯Êý»á·µ
»Ø55¡£Õâ¸öº¯ÊýÒ²ÄÜÀí½â²ÉÓñê×¼CÓïÑÔ¸ñʽµÄÊ®Áù½øÖÆÊý×Ö£ºÓÃ0x×÷Ϊһ¸öÊ®Áù½øÖÆÊý
×ÖµÄǰ׺¡ª¡ªËùÒÔ0x55abµÈ¼ÛÓÚvbµÄ&H55AB
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
lpAppName String£¬ÓûÔÚÆäÖÐËÑË÷ÌõÄ¿µÄС½ÚÃû¡£Õâ¸ö×Ö´®²»Çø·Ö´óСд
lpKeyName String£¬Óû»ñÈ¡µÄÏîÃû»òÌõÄ¿Ãû¡£Õâ¸ö×Ö´®²»Çø·Ö´óСд
nDefault Long£¬Ö¸¶¨ÔÚÌõĿδÕÒµ½Ê±·µ»ØµÄĬÈÏÖµ
×¢½â
²Î¿¼¶ÔGetPrivateProfileIntº¯ÊýµÄ×¢½â
--
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn£®[FROM: casi.bbs@smth.org]
--
¡ù תÔØ:£®¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn£®[FROM: 202.118.247.254]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
Ò³ÃæÖ´ÐÐʱ¼ä£º2.213ºÁÃë