Some VB apps try to store win32 handles in WORD size variables. On Win9x this works because most handles are 16-bit. However, ...

Some VB apps try to store win32 handles in WORD size variables. On Win9x this works because most handles are 16-bit. However, on NT, the VB type checking code throws a "Runtime Error 6". The shim intercepts the type checking code and ignores the check.