Trying to utlize a code sample I picked up, and I'm having a problem with an Array declared inside a structure.. the code is :
The function that is utilizing it refers to it here :VB Code:
Public Structure UUID Public Data1 As Long Public Data2 As Integer Public Data3 As Integer Public Data4(7) As Byte End Structure
Says "Arrays declared as structure members cannot be declared with initial size" . If I take the initialization out, i can run it, yet the program breaks at the start of the .Data4(0) in the With statement. Have any ideas??VB Code:
With typUUID .Data1 = &H626FC520 .Data2 = &HA41E .Data3 = &H11CF .Data4(0) = &HA7 .Data4(1) = &H31 .Data4(2) = &H0 .Data4(3) = &HA0 .Data4(4) = &HC9 .Data4(5) = &H8 .Data4(6) = &H26 .Data4(7) = &H37 End With




Reply With Quote