VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: GetProfileSection(Îļþ´¦Àí)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:38:38 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ catchy Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Sat Apr 8 01:56:49 2000) WWW-POST
GetProfileSection
VBÉùÃ÷
Declare Function GetProfileSection Lib "kernel32" Alias "GetProfileSectionA"
(ByVal lpAppName As String, ByVal lpReturnedString As String, ByVal nSize As
Long) As Long
˵Ã÷
»ñÈ¡Ö¸¶¨Ð¡½Ú£¨ÔÚwin.iniÎļþÖУ©ËùÓÐÏîÃûºÍÖµµÄÒ»¸öÁбí
·µ»ØÖµ
Long£¬×°Ôص½lpReturnedString»º³åÇøµÄ×Ö·ûÊýÁ¿¡£È绺³åÇøµÄ³¤¶È²»×ãÒÔÈÝÏÂËùÓÐÐÅÏ¢
£¬Ôò·µ»ØnSize-2
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
lpAppName String£¬Óû»ñÈ¡µÄС½Ú¡£Õâ¸ö×Ö´®²»Çø·Ö´óСд
lpReturnedString String£¬ÓÃÓÚÈÝÄÉÏîºÍÖµ×Ö´®ÁбíµÄÒ»¸ö»º³åÇø¡£Ã¿¸ö×Ö´®¶¼ÓÃÒ»¸ö
NULL·Ö¸ô£¬×îºóÒ»¸ö×Ö´®ÓÃÁ½¸öNULL×Ö·ûÖÐÖ¹
nSize Long£¬lpReturnedString»º³åÇøµÄ´óС£¬ÔÚwindows 95ÖÐ×î´óΪ32767
×¢½â
²Î¿¼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.532ºÁÃë