VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: LZOpenFile(Îļþ´¦Àí)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:39:52 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ catchy Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Sat Apr 8 02:01:06 2000) WWW-POST
LZOpenFile
VBÉùÃ÷
Declare Function LZOpenFile Lib "lz32.dll" Alias "LZOpenFileA" (ByVal
lpszFile As String, lpOf As OFSTRUCT, ByVal style As Long) As Long
˵Ã÷
¸Ãº¯ÊýÄÜÖ´ÐдóÁ¿²»Í¬µÄÎļþ´¦Àí£¬¶øÇÒ¼æÈÝÓÚѹËõÎļþ
·µ»ØÖµ
Long£¬È纯ÊýÖ´Ðгɹ¦£¬ÇÒÑùʽ£¨style£©²ÎÊý²»ÎªOF_READ£¬¾Í·µ»Ø³£¹æµÄÎļþ¾ä±ú£¬¾ß
ÌåÇë²Î¿¼OpenFileº¯ÊýµÄ˵Ã÷¡£ÈçÑùʽ²ÎÊýΪOF_READ£¬¶øÇÒÎļþÊÇѹËõµÄ£¬¾Í»á·µ»ØÒ»
¸öÌØÊâµÄÎļþ¾ä±ú£¬ÒÔ±ãÓÉLZCopy£¬ LZRead ºÍ LZSeekº¯ÊýʹÓá£Èç³ö´í£¬·µ»ØÈçϱí
ËùʾµÄÒ»¸ö³£Êý£º
LZERROR_BADINHANDLE Ô´ÎļþÎÞЧ
LZERROR_BADOUTHANDLE Ä¿±êÎļþÎÞЧ
LZERROR_GLOBALLOC ÄÚ²¿½âѹ»º³åÇøµÄÄÚ´æÈÝÁ¿²»×ã
LZERROR_GLOBLOCK ÄÚ²¿½âѹ»º³åÇøµÄ¾ä±úÎÞЧ
LZERROR_READ ÎÞЧµÄÔ´Îļþ¸ñʽ
LZERROR_UNKNOWNALG ½âѹDLL²»ÄÜʶ±ðÔ´Îļþ²ÉÓõÄѹËõËã·¨
LZERROR_WRITE ÔÚ´ÅÅÌÉÏдÈëÊä³öÎļþʱ³ö´í£¬Í¨³£ÊÇÓÉÓÚ´ÅÅ̿ռ䲻×ãÔì³ÉµÄ
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
lpszFile String£¬Óû´ò¿ªµÄÎļþÃû
lpOf OFSTRUCT£¬¸Ã½á¹¹Ìî³äµÄÊý¾Ý°üÀ¨Óë±¾´Î´¦ÀíµÄÎļþºÍ½á¹ûÓйصÄÐÅÏ¢
style Long£¬´¦Àí·½Ê½±êÖ¾³£ÊýµÄÒ»ÖÖ×éºÏ¡£²Î¿¼OpenFileº¯ÊýµÄ±êÖ¾³£Êý±í
×¢½â
²Î¿¼OpenFileº¯Êý
--
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã 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.395ºÁÃë