Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

GetNativePointer – PB Docs 126 – PowerBuilder Library

GetNativePointer – PB Docs 126

GetNativePointer PowerScript function

Description

Gets a pointer to the OLE object associated with the OLE control.
The pointer lets you call OLE functions in an external DLL for the
object.

Controls

OLE controls and OLE custom controls

Syntax

Argument

Description

olename

The name of the OLE control containing
the object for which you want the native pointer.

pointer

A UnsignedLong variable in which you
want to store the pointer. If GetNativePointer cannot get a valid
pointer, pointer is set to 0.

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 it with the OLE QueryInterface function
to get other interface pointers.

When you call GetNativePointer, PowerBuilder
calls OLE’s AddRef function, which locks
the pointer. You must release the pointer in your DLL function or in
a PowerBuilder script with the ReleaseNativePointer function.

note.png Only for external DLL calls

This function is only useful for external DLL calls. It is
not related to the SetAutomationPointer function.

Examples

This example gets a pointer for the OLECustomControl ocx_spell for
making external function calls for OLE automation:

See Also


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x