ReleaseNativePointer PowerScript function
Description
Releases the pointer to an OLE object that you got with GetNativePointer.
Controls
OLE controls and OLE custom controls
Syntax
1 |
<span>olename</span>.<span>ReleaseNativePointer</span> ( <span>pointer</span> ) |
Argument |
Description |
---|---|
olename |
The name of the OLE control containing |
pointer |
A UnsignedLong variable that holds the |
Return Values
Integer. Returns 0 if it succeeds and
-1 if an error occurs.
Usage
Pointer is a pointer to OLE’s
IUnknown interface. You can use IUnknown::QueryInterface to
get other interface pointers.
When you call GetNativePointer, PowerBuilder
calls OLE’s AddRef function, which locks
the pointer. You can release the pointer in your DLL function or
in a PowerBuilder script with the ReleaseNativePointer function.
Examples
See GetNativePointer.