Using the Legacy OCX Controls with Visual Basic 6.0

 

In Visual Basic 6.0, unlike in VB.NET, the Long datatype has a size of 32-bit and the Integer datatype has a size of 16-bit. The Long datatype must be used for all handle values (Specified as LONGLONG in the function descriptions in the Document Imaging OCX manual.)