VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: llseek(Îļþ´¦Àí)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:39:39 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ catchy Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Sat Apr 8 01:59:56 2000) WWW-POST
llseek
VBÉùÃ÷
Declare Function llseek Lib "kernel32" Alias "_llseek" (ByVal hFile As Long,
ByVal lOffset As Long, ByVal iOrigin As Long) As Long
˵Ã÷
ÉèÖÃÎļþÖнøÐжÁдµÄµ±Ç°Î»Ö᣸ú¯ÊýÓëvbµÄseekÓï¾äÀàËÆ¡£Èç¹ûÓÃvbµÄopenÃüÁî´ò¿ª
ÁËÒ»¸öÎļþ£¬ÄÇô²»ÒªÔÙ¶ÔÕâ¸öÎļþʹÓÃllseekº¯Êý
·µ»ØÖµ
Long£¬·µ»ØÒ»¸öÐÂλÖã¬ÉèÖóɴÓÎļþÆðʼ´¦ËãÆðµÄÒ»¸öÆ«ÒÆÁ¿¡£HFILE_ERROR±íʾº¯Êý
Ö´Ðгö´í¡£»áÉèÖÃGetLastError
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
hFile Long£¬ÏµÍ³Îļþ¾ä±ú
lOffset Long£¬×Ö½ÚÆ«ÒÆÁ¿
iOrigin Long£¬ÏÂÊö³£ÊýÖ®Ò»
FILE_BEGIN lOffset½«ÐÂλÖÃÖ¸¶¨³É´ÓÎļþÆðʼ´¦µÄÒ»¸öÆ«ÒƾàÀë
FILE_CURRENT lOffset½«ÐÂλÖÃÖ¸¶¨³É´Óµ±Ç°Î»ÖÿªÊ¼µÄÒ»¸öÆ«ÒƾàÀë
FILE_END lOffset½«ÐÂλÖÃÖ¸¶¨³É´ÓÎļþ½áβ¿ªÊ¼µÄµÄÒ»¸öÆ«ÒƾàÀë
×¢½â
²Î¿¼SetFilePointerº¯Êý£¬ÈÏʶÄܶԽϴóÎļþ½øÐд¦ÀíµÄÒ»¸ö½üËƺ¯Êý.
--
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã 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)
Ò³ÃæÖ´ÐÐʱ¼ä£º6.194ºÁÃë