Show/Hide Toolbars

XSharp

This structure contains a pointer to a memory block with an Ansi string. When created with String2Psz() and Cast2Psz() then the compiler will take care of releasing these memory blocks. When created with other runtime functions such as StringAlloc() then you are responsible of releasing the memory yourself.

The internal type name for this type is XSharp.__Psz

 

Note

Please do not use the PSZ type for new code. It is only included for backward compatibility.

Even new code that calls the windows API can use a better alternative, for example using the [DllImportAttribute] from the framework

 

 

The PSZ type is a pointer type that points to a null terminated sequence of zero or more bytes, typically representing a printable character string. This type is for backward compatibility only. Don't use this type in new code unless you have to.

Implementation

The PSZ type is implemented in the class XSharp.__Psz

The Usual type of PSZ  is 17.