# 去参观一下 cww 兄的心得笔记就知道了

Posted by Sephiroth on May 07, 1999 at 14:05:42:

In Reply to: 有关登录资料库 posted by 征服未来 on May 07, 1999 at 11:00:31:

: Private Sub Command1_Click()
: Dim hKyt As Long, typeData As Long, lenData As Long
: Dim str As String
^^^^^^^^^^^^^^^^^^^^
这里必须改成:
Dim str As String * 255
或
str = String$(255, 0)

如果不知道原因, 参考有关 VB API 字串转换的文章
就知道了. 在 cww 兄的笔记中有, 记得去参观.
他那几篇 API 入门的文章最好用力给他 K 一下.

Follow Ups: