TypeToString Function in VB5
Posted on 1998-04-02
The TypeToString function uses the copytype.dll with the following parameters: address of the type, return string, bytes to return. For instance, I create a user-defined type that contains 3 variables, each of which are strings of 10 bytes. When I call the TypeToString function, I will pass this type (automatically by reference), a string variable name, and 30 (number of bytes to return). While I can use this function without issue in VB 3.0 and 4.0, I cannot in VB 5.0. I would guess that the copytype.dll is only 16-bit and incompatible. Regardless, I would like to know if VB 5.0 offers the equivalent functionality.
I appreciate your time and attention to this matter.