Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SADD, VARSEG and DEF SEG functions

Status
Not open for further replies.

ATD

Technical User
Jul 8, 2004
2
0
0
US

Please explain the following code. I'm programming in VB 6 and looking for equivalent piece of code in Visual Basic.
..............................
a& = SADD(Buffer$)
a& = a& - 65536 * (a& < 0)
BufferSeg = VARSEG(Buffer$) + (A& \ 16)
Address = a& And 15
EndAddress = Address + BufferLength
DEF SEG = BufferSeg
..............................

Thanks very much
 
Here's a pretty good explanation by logiclrd from when I asked the exact same question:

faq314-290


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top