Click or drag to resize

Functions.Psz2String Method

Convert a null-terminated string to a strongly typed string.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.07
Syntax
 FUNCTION Psz2String(
	pszSource AS PSZ
) AS STRING
View Source

Parameters

pszSource
Type: __Psz

Return Value

Type: String
Remarks
Tip 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.
See Also