?? chartooem.htm
字號(hào):
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<style><!--
body,table {font-family:"宋體"; font-size: 9pt; line-height:11pt;}
a {text-decoration:none} a:hover {color:red;text-decoration:underline}
--></style>
<title>CharToOem</title>
</head>
<body link="#FF0000" vlink="#FF0000" alink="#FF0000" bgcolor=#E2DEE9>
<div align="center"><center>
<table border="0" width="100%" height="22" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="16">CharToOem, CharToOemBuff</td>
</tr>
</table>
</center></div><div align="center"><center>
<table border="1" width="100%" bordercolorlight="#808080" cellspacing="0"
bordercolordark="#FFFFFF">
<tr>
<td width="102%" colspan="2">VB聲明</td>
</tr>
<tr>
<td width="102%" colspan="2">Declare Function CharToOem& Lib "user32" Alias
"CharToOemA" (ByVal lpszSrc As String, ByVal lpszDst As String)<br>
Declare Function CharToOemBuff& Lib "user32" Alias
"CharToOemBuffA" (ByVal lpszSrc As String, ByVal lpszDst As String, ByVal
cchDstLength As Long)</td>
</tr>
<tr>
<td width="102%" colspan="2">說(shuō)明</td>
</tr>
<tr>
<td width="102%" colspan="2">將一個(gè)字串從ANSI字符集轉(zhuǎn)換到OEM字符集。CharToOemBuff允許我們指定字串中需轉(zhuǎn)換的字符數(shù)量</td>
</tr>
<tr>
<td width="102%" colspan="2">返回值</td>
</tr>
<tr>
<td width="102%" colspan="2">Long,肯定是TRUE</td>
</tr>
<tr>
<td width="102%" colspan="2">參數(shù)表</td>
</tr>
<tr>
<td width="25%">參數(shù)</td>
<td width="77%">類型及說(shuō)明</td>
</tr>
<tr>
<td width="25%">lpszSrc</td>
<td width="77%">String,欲轉(zhuǎn)換的字串</td>
</tr>
<tr>
<td width="25%">lpszDst</td>
<td width="77%">String,用于包含轉(zhuǎn)換結(jié)果的OEM字串。注意事先將字串初始化成合適的長(zhǎng)度。可將相同的字串傳遞給這兩個(gè)參數(shù),執(zhí)行本地轉(zhuǎn)換(即在同一個(gè)字串中轉(zhuǎn)換)</td>
</tr>
<tr>
<td width="25%">cchDstLength</td>
<td width="77%">Long,在字串lpszSrc中想轉(zhuǎn)換的字符數(shù)量</td>
</tr>
<tr>
<td width="102%" colspan="2">注解</td>
</tr>
<tr>
<td width="102%" colspan="2"><p align="left">如用一個(gè)Win32類型庫(kù)訪問(wèn)寬字符函數(shù)CharToOemW,則lpszSrc是一個(gè)Unicode字串,且lpszDst參數(shù)絕對(duì)不能與lpszSrc相同</td>
</tr>
</table>
</center></div><div align="center"><center>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><p align="right">Top</td>
</tr>
</table>
</center></div>
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -