📄 charnext.htm
字号:
<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>CharNext</title>
</head>
<body background="../../../images/gray_weave.gif" link="#FF0000" vlink="#FF0000" alink="#FF0000" bgcolor="#FFC8C8">
<div align="center"><center>
<table border="0" width="100%" height="22" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="16">CharNext</td>
</tr>
</table>
</center></div><div align="center"><center>
<table border="1" width="100%" bordercolorlight="#808080" cellspacing="0"
bordercolordark="#FFFFFF">
<tr>
<td width="100%">VB声明</td>
</tr>
<tr>
<td width="100%">Declare Function CharNext Lib "user32" Alias
"CharNextA" (ByVal lpsz As String) As String</td>
</tr>
<tr>
<td width="100%">说明</td>
</tr>
<tr>
<td width="100%">返回一个指针,指向某个字串的下一个字符。在双字节字符集中(比如中文字符集),每个字符都可能占据一个或两个字节的空间,所以倘若一个字符并非肯定指向下一个字符,就要在位置的基础上加1</td>
</tr>
<tr>
<td width="100%">在VB里使用</td>
</tr>
<tr>
<td width="100%"><p align="left">在Win16下,利用这个函数,可以获取内存中某个字串的地址。而在Win32环境中,它取回的是字串一个临时副本的地址——VB将一个内部Unicode字串转换成ANSI格式,以便在DLL调用中使用的时候,就会创建这样的一个字串副本。所以这个值(以及整个函数)对在Win32环境中工作的VB程序员来说是没有意义的</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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -