TE Edit Control Win32 / Win64 Help
Product page

HandleToIntArray

Copy the contents a global memory handle to an integer array.

int HandleToStr(UniText, length, hMem)
LPWORD UniTexta VB integer array
long length;length of the string
HGLOBAL hMem;Global memory handle

Description: This function can be used to copy the contents of a global memory handle to a given visual basic interger array. Example:

Dim size As Long
Dim hMem As Long
Dim UniText(MAX_WIDTH) As Integer
Dim count As Long

hMem = TOC1.TerGetTextSelU(size)
count = TOC1.HandleToIntArray(UniText(0), size, hMem)

The UniText array now contains unicode character values.

The input global memory handle is freed up after copying its contents to the string.

Return Value: This function returns TRUE if successful.