| GetErrorDescription |
|
|
|
|
long GetErrorDescription( LPSTR Description, // buffer that receives error description long DescriptionLength // size of buffer );
long GetErrorDescription( LWPSTR Description, // buffer that receives error description long DescriptionLength // size of buffer );
GetErrorDescription() As String
Most IXFile methods set error and failure codes on completion regardless of result; if operation failed codes are set to their appropriate values; if operation succeeded error and failure codes are both set to 0. For this reason you should retrieve error description immediately when method returns to avoid wiping it out by another call.
Unicode version of the method should not be confused with Unicode system calls - all versions of the method can be used on Unicode and non-Unicode systems depending on your needs. On Unicode systems, however, error description is retrieved by Unicode version of system function (unless Unicode is disabled with EnableUnicode method). See Unicode Support for more information on Unicode system calls, Unicode methods and Unicode text data.