|
-
Feb 21st, 2000, 04:00 PM
#1
Thread Starter
Member
...to me at least. The experienced among you will probably know what's up immediately.
Anyways, here's the situation:
module-1
global buffer as long
public const MAX_XRES= 800
public const MAX_YRES= 600
form-1
buffer= MAX_XRES * MAX_YRES
THIS CAUSES AN OVERFLOW ERROR (6)
800*600 (480000) > 2^32 ???!!
If I simply say:
buffer= 480000, there's no problem
Obviously, VB is playing some odd type conversion game; if anyone can tell me exactly what's going on here, I'd really appreciate it.
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|