correct me: the 'structure' is like 'class'?
(i'm asking, because we can use 'Initialize' function and we can add functions)
from VB6:
to VB2010:Code:Private Type SAFEARRAY2D cDims As Integer fFeatures As Integer cbElements As Long cLocks As Long pvData As Long Bounds(0 To 1) As SAFEARRAYBOUND End Type
is these correct?Code:Private Structure SAFEARRAY2D Public cDims As Integer Public fFeatures As Integer Public cbElements As Long Public cLocks As Long Public pvData As Long <MarshalAs(UnmanagedType.ByValArray, SizeConst:=2)> Public Bounds() As SAFEARRAYBOUND Public Sub Initialize() ReDim Bounds(2) End Sub End Structure





Reply With Quote