...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