Gets the error string for the specified error code.
#include "ltmf.h"
Language | Syntax |
---|---|
C | BSTR ltmfGetErrorText (errorcode) |
C++ | BSTR ltmfGetErrorText (errorcode) |
The HRESULT error code for which to get the error string.
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.
Even though the ltmfGetErrorText 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 ltmfGetErrorText 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.
Win32, x64.
For a C++ example, refer to Recompressing an MP4 File for C++.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document