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 :
VB Code:
  1. Public Structure UUID
  2.         Public Data1 As Long
  3.         Public Data2 As Integer
  4.         Public Data3 As Integer
  5.         Public Data4(7) As Byte
  6.     End Structure
The function that is utilizing it refers to it here :
VB Code:
  1. With typUUID
  2.                 .Data1 = &H626FC520
  3.                 .Data2 = &HA41E
  4.                 .Data3 = &H11CF
  5.                 .Data4(0) = &HA7
  6.                 .Data4(1) = &H31
  7.                 .Data4(2) = &H0
  8.                 .Data4(3) = &HA0
  9.                 .Data4(4) = &HC9
  10.                 .Data4(5) = &H8
  11.                 .Data4(6) = &H26
  12.                 .Data4(7) = &H37
  13.             End With
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??