How to Pass & Return Unsigned Integers to DLLs from VB (112673)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 1.0
- Microsoft Visual Basic Standard Edition for Windows 2.0
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 2.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
This article was previously published under Q112673 SUMMARY
Visual Basic stores its integer variables in an 8-bit data field, as
does C. Visual Basic uses signed integers only, so it reserves one of the
bits as a sign bit. In C, you have the choice of an unsigned integer (the
variable ranges from 0 to 65536) or a signed integer (the variable ranges
from -32767 to +32767 as do Visual Basic integer variables).
Modification Type: | Major | Last Reviewed: | 12/9/2003 |
---|
Keywords: | KB112673 |
---|
|