byte数组如何转换成byte字符串
有没有相关的函数
可以一次搞定的

解决方案 »

  1.   

    晕,什么是Byte字符串如果要将Byte数组转换成字符串,可以使用下列函数str=StrConv(lpData,vbUnicode)
      

  2.   

    http://community.csdn.net/Expert/topic/4521/4521875.xml?temp=.7734796
      

  3.   

    如果仅仅是想将数组数据传入传出,封装个方法或属性就行'Class中
    Private m_arr(0 To 9) As BytePublic Function a() As Byte()
        a = m_arr
    End FunctionPublic Property Get b() As Byte()
        b = m_arr
    End Property
      

  4.   

    Private m_FileContent() As BytePublic Property Get FileContent() As Byte
    FileContent = m_FileContent()
    End PropertyPublic Function ReadFile()
    Open FileName For Binary As #1
    ReDim m_FileContent(LOF(1) - 1) As Byte
    Get #1, , m_FileContent
    Close #1
    End Function我试过,但是读取属性值时只有一个字节
      

  5.   

    少个括号,返回数组用“Byte()”Public Property Get FileContent() As Byte()
    FileContent = m_FileContent()
    End Property