Dim sBuffer (5) as byte, iShukaqiBH as long, as long I
For I=0 to 4
SBuffer (I)=0
Next I
IShukaqiBH=1
Call CopyMemory (sBuffer (1), iShukaqiBH, 2)
After the CopyMemory function performs, sBuffer (1) should be equal to 1, and now is the result of the 5, how be to return a responsibility excuse me,
CodePudding user response:
CopyMemory statement you have differences, it is suggested that include a ApiViewer tool
Private Declare Sub CopyMemory Lib "kernel32. DLL" Alias "RtlMoveMemory" (ByRef Destination As Any, ByRef Source As Any, ByVal Length As Long)
CodePudding user response: