Oem2AnsiBuff Function |
|
Namespace: XSharp.RT
FUNCTION Oem2AnsiBuff( pszTarget AS PSZ, pszSource AS PSZ, dwCount AS DWORD ) AS PSZ
public static Psz Oem2AnsiBuff( Psz pszTarget, Psz pszSource, uint dwCount )
|
You are responsible for allocating space for the buffer pointed to by pszTarget. Using an unallocated buffer pointer can have adverse results. |
|
The PSZ type is included in the X# language and runtime for compatibility only.
In most cases the type can and should be replaced with normal strings. If you need to interface with Win32 API functions that expect an ansi string, there is often also an alternative with a unicode string. We recommend to use that alternative when possible. |
1LOCAL cStr := "ßá" 2Oem2AnsiBuff(Ptr(_CAST, cStr),; 3 Ptr(_CAST, cStr), sLen(cStr))