
05-27-2007, 10:38 PM
|
 |
Joseph Koss
* Guru *
|
|
Join Date: Aug 2003
Location: Unfashionable End
Posts: 3,615
|
|
Quote:
Originally Posted by rjrodrig
Hi all,
I would appreciate your help on this topic. I have a DLL function that looks like this GetCurrentFrame(int CamHandle, int FrameType, BYTE *Buffer), and it returns a very large buffer for a 1.3MPix image. The image is structured in a 1-D array of BGR bytes all sequential. So the total array size is 1280x1024*3=3,932,160 byte elements.
I tried redim myBuff(0 to 3932159) this works fine in VB. When I try
Global ImgSize as long
ImgSize = (1024*1280*3)
The VB6 compiler complains for overflow; the answer is too big and does not fit. It should fit up to 2 billion, why is VB complaining ? Does any one know how to solve this problem?
Regards,
rjrodrig
|
Try ImgSize = (1024& * 1280 * 3)
And if that doesnt do it
ImgSize = CLng(1280 * 3) * 1024
|
|