bytes2BSTR
更新时间:2007年01月22日 00:00:00 作者:
复制代码 代码如下:
Function bytes2BSTR(vIn)
strReturn = ""
For i = 1 To LenB(vIn)
ThisCharCode = AscB(MidB(vIn,i,1))
If ThisCharCode < &H80 Then
strReturn = strReturn & Chr(ThisCharCode)
Else
NextCharCode = AscB(MidB(vIn,i+1,1))
strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
i = i + 1
End If
Next
bytes2BSTR = strReturn
End Function
相关文章
自动写入文件上传到指定服务器SoftwareMeteringCLS.vbs源码
本次文章其中所用脚本代码为ghiconan版主提供的由Branimir petrovic编写的代码,我在后面根据我公司现有的网络情况做了一些文件管理的添加与删除,最后有用FTP批处理的方法上传到服务器内!2008-12-12


最新评论