Using Lstrcpy() API Function to Get Far Address of a Variable (94700)
The information in this article applies to:
- 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 Q94700 SUMMARY
You can use the Windows API function Lstrcpy() to get the far address of
a variable as a Long integer.
The Lstrcpy() function returns the same value as its first argument, which
is the address of a variable. Usually you would use the Lstrcpy() function
to copy strings that are terminated by a zero byte. However, if you pass
the same variable as both the source and the destination, Lstrcpy() copies
the variable to itself, which has no effect.
Modification Type: | Major | Last Reviewed: | 12/12/2003 |
---|
Keywords: | KB94700 |
---|
|