

















Option Explicit
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (dest As Any, source As Any, ByVal numBytes As Long)
Private Declare Sub ZeroMemory Lib "kernel32" Alias "RtlZeroMemory" (dest As Any, ByVal numBytes As Long)
Private Sub CopyStringArray(source() As String, dest() As String)
Dim mLbound As Long, mUbound As Long, numBytes As Long
mLbound = LBound(source)
mUbound = UBound(source)
numBytes = (mUbound - mLbound + 1) * 4
ReDim dest(mLbound To mUbound) As String
CopyMemory ByVal VarPtr(dest(mLbound)), ByVal VarPtr(source(mLbound)), numBytes
End Sub
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。