FUNCTION Ansi2OemBuff( pszTarget AS PSZ, pszSource AS PSZ, dwCount AS DWORD ) AS PSZ
public static Psz Ansi2OemBuff( 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 := "ßä" 2Ansi2OemBuff(PSZ(_CAST, cStr), PSZ(_CAST, cStr), SLen(cStr))
Copyright © 2015-2022 XSharp BV, All rights reserved. The VO SDK classes are Copyright © Computer Associates.