Skip to content

Instantly share code, notes, and snippets.

@kumatti1
Created June 19, 2015 22:09
Show Gist options
  • Save kumatti1/cb2c41a4394ebc127e06 to your computer and use it in GitHub Desktop.
Save kumatti1/cb2c41a4394ebc127e06 to your computer and use it in GitHub Desktop.
InitVariantFromInt32Array
Private Declare PtrSafe _
Function InitVariantFromInt32Array Lib "Propsys" ( _
ByRef prgn As Any, _
ByVal cElems As Long, _
ByRef pvar As Variant _
) As Long
Sub hoge()
Dim hr&
Dim arr&(0 To 1)
arr(0) = 1&
arr(1) = 2&
hr = InitVariantFromInt32Array(arr(0), 2, Vnt)
Stop
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment