• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

VB6 Array limitations

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.
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
 
Back
Top