Psz2String Function |
Namespace: XSharp.RT
FUNCTION Psz2String( pszString AS PSZ ) AS STRING
public static string Psz2String( Psz pszString )
Tip |
---|
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 cMyBuffer AS STRING 2LOCAL pszString AS PSZ 3pszString := String2Psz("zero terminated") 4cMyBuffer := Psz2String(pszString)