to benyfeifei(狒狒) 不好意思,偶又来蹭分了 http://community.csdn.net/Expert/topic/3195/3195637.xml?temp=.5307123
The CopyMemory function copies a block of memory from one location to another. VOID CopyMemory( PVOID Destination, // pointer to address of copy destination CONST VOID *Source, // pointer to address of block to copy DWORD Length // size, in bytes, of block to copy );
right("",1)
lngTest as long
intTest as integer
end typePrivate Sub Command1_Click()
dim t as MyType Dim var() As Byte
t.intTest = 0
t.lngTest = 10000
ReDim var(0 To Len(t) - 1) As Byte
CopyMemory ByVal VarPtr(var(0)), ByVal VarPtr(t), Len(t)
End Sub
不好意思,偶又来蹭分了
http://community.csdn.net/Expert/topic/3195/3195637.xml?temp=.5307123
PVOID Destination, // pointer to address of copy destination
CONST VOID *Source, // pointer to address of block to copy
DWORD Length // size, in bytes, of block to copy
);
哈哈,蹭分没关系,关键是大家互相学习