VB6 Array limitations

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

kevinthenerd

Platinum Member
Jun 27, 2002
2,908
0
76
Originally posted by: EagleKeeper
Looks like he created the arrays in memory and the wrote them out into a binary file.

Then just read the binary file back into memory.

Yep.... The code that makes the table and stores it looks quite similar....


ReDim RGB_Array(0 to 255, 0 to 255, 0 to 255) As Single
For Red = 0 to 255
For Green = 0 to 255
For Blue = 0 to 255
RGB_Array(Red, Green, Blue) = RGB_Function(Red, Green, Blue)
Next Blue
Next Green
Next Red
'(I know, putting the variable on the next statement is old school.)
'You can't kill some very old basic habits.

Open "lut.dat" For Binary as #1
Put #1, 1, RGB_Array
Close #1