The WinCvtConvertFile function converts a file from one format to another.
WINCVT_STATUS
WinCvtConvertFile(
LPCSTR szSourceFile, // The path of the file to convert in original format.
LPCSTR szSourceClass,// The class of converter to convert from (optional.)
LPCSTR szDestFile, // The path of the new file to create.
LPCSTR szDestClass, // The class of converter to convert to (optional.)
_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 WinCvtConvertFile function converts a file from one format to another. For finer-grained control, use the WinCvtConvertToRtf and WinCvtConvertToNative functions.
WinCvt: Requires 0.1.0.
Header: Declared in WinCvt.h.
Import Library: Use WinCvt.lib.
WinCvtConvertToNative, WinCvtConvertToRtf, WinCvtGetClassName, WinCvtGetErrorString, WinCvtProgressCallback.