Click or drag to resize

Oem2AnsiBuff Function

Convert a specified number of OEM characters in a source buffer to a buffer of corresponding, if any, ANSI characters.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.6
Syntax
 FUNCTION Oem2AnsiBuff(
	pszTarget AS BYTE[],
	pszSource AS BYTE[],
	dwCount AS DWORD
) AS BYTE[]
Request Example View Source

Parameters

pszTarget
Type: Byte
A pointer to the buffer that will contain the converted string.
pszSource
Type: Byte
A pointer to the buffer that contains the string to convert.
dwCount
Type: UInt32
The number of characters to convert.

Return Value

Type: Byte
A pointer to the buffer that contains the converted string.
Remarks
Oem2AnsiBuff() is the same as Oem2Ansi, except that the resulting pointer is stored in the buffer pointed to by <pszTarget>.
Also, the <dwCount> argument lets you specify the number of characters to be converted.
Tip Tip
You are responsible for allocating space for the buffer pointed to by <pszTarget>.
Using an unallocated buffer pointer can have adverse results.
Remarks