ltmmGetErrorText

Summary

Gets the error string for the specified error code.

Syntax

#include "ltmm.h"

Language Syntax
C BSTR ltmmGetErrorText (errorcode)
C++ BSTR ltmmGetErrorText (errorcode)

Parameters

long errorcode

The HRESULT error code for which to get the error string.

Returns

Returns a character string that contains the error string for the specified error code. The user should call SysFreeString when this string is no longer needed.

Comments

Even though the ltmmGetErrorText function can be called from C and C++, it is not necessary to use it. The standard automation error object is available in these languages when events are fired. Invalid error codes passed to this function will return an "Internal error" message.

Please note that the ltmmGetErrorText function is global (not attached to a particular interface/object). You use this function to get the description string for the error code returned by any object's function.

Required DLLs and Libraries

Platforms

Win32, x64.

Example

Language Example
C Recompressing an AVI File
C++ Recompressing an AVI File
Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Multimedia C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.