VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: CharToOem(Ó²¼þÓëϵͳ)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:35:14 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ catchy Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Wed Mar 29 23:36:49 2000) WWW-POST
CharToOem, CharToOemBuff
VBÉùÃ÷
Declare Function CharToOem& Lib "user32" Alias "CharToOemA" (ByVal lpszSrc As
String, ByVal lpszDst As String)
Declare Function CharToOemBuff& Lib "user32" Alias "CharToOemBuffA" (ByVal
lpszSrc As String, ByVal lpszDst As String, ByVal cchDstLength As Long)
˵Ã÷
½«Ò»¸ö×Ö´®´ÓANSI×Ö·û¼¯×ª»»µ½OEM×Ö·û¼¯¡£CharToOemBuffÔÊÐíÎÒÃÇÖ¸¶¨×Ö´®ÖÐÐèת»»µÄ
×Ö·ûÊýÁ¿
·µ»ØÖµ
Long£¬¿Ï¶¨ÊÇTRUE
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
lpszSrc String£¬Óûת»»µÄ×Ö´®
lpszDst String£¬ÓÃÓÚ°üº¬×ª»»½á¹ûµÄOEM×Ö´®¡£×¢ÒâÊÂÏȽ«×Ö´®³õʼ»¯³ÉºÏÊʵij¤¶È¡£
¿É½«ÏàͬµÄ×Ö´®´«µÝ¸øÕâÁ½¸ö²ÎÊý£¬Ö´Ðб¾µØת»»£¨¼´ÔÚͬһ¸ö×Ö´®ÖÐת»»£©
cchDstLength Long£¬ÔÚ×Ö´®lpszSrcÖÐÏëת»»µÄ×Ö·ûÊýÁ¿
×¢½â
ÈçÓÃÒ»¸öWin32ÀàÐÍ¿â·ÃÎÊ¿í×Ö·ûº¯ÊýCharToOemW£¬ÔòlpszSrcÊÇÒ»¸öUnicode×Ö´®£¬ÇÒ
lpszDst²ÎÊý¾ø¶Ô²»ÄÜÓëlpszSrcÏàͬ
--
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã 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.322ºÁÃë