The WinCvtConvertToRtf function converts a file in an arbitary format into RTF.
WINCVT_STATUS
WinCvtConvertToRtf(
LPCSTR szFileName, // Path of the file to convert (in native format.)
LPCSTR szConverter,// Path to converter to use (optional.)
LPCSTR szClass, // The class of the conversion to use (optional.)
HANDLE hOutput, // Open stream to store RTF output.
_WinCvtProgressCallback ProgressRoutine // Routine for progress notifications (optional.)
);
If the function succeeds, the return value is WINCVT_SUCCESS. If the function fails, the return value is the error code describing the failure. This code can be turned into a human readable string using the WinCvtGetErrorString.
The WinCvtConvertToRtf function converts a file in an arbitary format into RTF. For simplified conversion, use the WinCvtConvertFile function. To convert the RTF into another format, call the WinCvtConvertToNative function.
WinCvt: Requires 0.1.0.
Header: Declared in WinCvt.h.
Import Library: Use WinCvt.lib.
WinCvtConvertFile, WinCvtConvertToNative, WinCvtGetClassFileName, WinCvtGetClassName, WinCvtGetErrorString, WinCvtProgressCallback.