当VB的一个结构中包含一个定长字符(在前),一个枚举时(在后),调用CopyMemory,程序肯定飞掉,连VB一起飞掉,加On Error也无效。如:Option ExplicitPrivate Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)Private Enum eMyEnum
    e1 = 1
    e2 = 3
End Enum
Private Type tMyStruct
    t1 As String * 8
    t2 As eMyEnum
End Type
Private Sub Form_Load()
    Dim tt As tMyStruct
    Dim byt() As Byte
    Dim size As Long
    size = LenB(tt)
    ReDim byt(size) As Byte
    CopyMemory byt(0), tt, size '飞了
End Sub但是只要把结构中的枚举放到前面,字符放到后面,就没事。
不知到大家有没有碰到这样的情况?还是我的什么地方有问题??