Progress
Language Reference
SET-POINTER-VALUE Statement
Sets a variable of type MEMPTR to the value of a particular memory location.
SYNTAX
memptr-value
A 32-bit integer that represents a memory location.
memptr-expression
An expression that evaluates to a value of type MEMPTR.
EXAMPLEThe following example calls a DLL routine that returns a pointer to a structure, extracts an address at byte 5 of the structure, uses SET-POINTER-VALUE to assign the address to a Progress MEMPTR, and displays the character string at the address.
NOTES
- SET-POINTER-VALUE is particularly useful when accessing Windows Dynamic Link Library (DLLs) or UNIX shared library routines from the 4GL. For more information on DLLs, see the chapter on DLLs in the Progress External Program Interfaces manual.
- For more information on the MEMPTR data type, see the Progress External Program Interfaces manual.
SEE ALSO
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |