ShowFileConversionDlg Example for C++ 5.0 and later

void CDialogs::OnShowFileConversionDlg()
{
	HRESULT hr;
	int nRet;

	ILEADRasterDlgKrn_U *m_pRasterDlgKrn = NULL;
	hr = CoCreateInstance(CLSID_LEADRasterDlgKrn_U,
		NULL,
		CLSCTX_ALL,
		IID_ILEADRasterDlgKrn_U,
		(LPVOID*)&m_pRasterDlgKrn);

	ILEADRasterDlgFile_U *m_pRasterDlgFile = NULL;
	hr = CoCreateInstance(CLSID_LEADRasterDlgFile_U,
		NULL,
		CLSCTX_ALL,
		IID_ILEADRasterDlgFile_U,
		(LPVOID*)&m_pRasterDlgFile);

	nRet = m_pRasterDlgKrn->InitDlg(INIT_WITH_COLOR);

	m_pRasterDlgFile->OverWriteFlags = FILECONVERSION_OVERWRITE_SKIP; 
	m_pRasterDlgFile->FileFormatsCount = 0; 
	m_pRasterDlgFile->DestinationPath = "C:\\Output";
	m_pRasterDlgFile->EnableLogReport = true; 
	m_pRasterDlgFile->EnableRemoveSourceFile = false; 
	m_pRasterDlgFile->EnableShowFullPath = true; 
	m_pRasterDlgFile->UseOriginalFolder = true; 
	m_pRasterDlgFile->SourceFileList = "D:\\Images\\Vista\\Dock.jpg|D:\\Images\\Vista\\Garden.jpg|D:\\Images\\Vista\\Forest.jpg|D:\\Images\\Vista\\Creek.jpg|";
	m_pRasterDlgFile->UIFlags = FILECONVERSION_SHOW_PREVIEW          |
		FILECONVERSION_SHOW_LOADOPTIONS      |
		FILECONVERSION_SHOW_FILEINFO         |
		FILECONVERSION_SHOW_PREVIEW_PAGES    |
		FILECONVERSION_SHOW_RESIZE           |
		FILECONVERSION_SHOW_ROTATE           |
		FILECONVERSION_SHOW_NAMINGTEMPLATE   |
		FILECONVERSION_SHOW_OVERWRITE        |
		FILECONVERSION_SHOW_OVERWRITE_ALL    |
		FILECONVERSION_SHOW_ADD              |
		FILECONVERSION_SHOW_ADDFOLDER        |
		FILECONVERSION_SHOW_REMOVE           |
		FILECONVERSION_SHOW_SELECTALL        |
		FILECONVERSION_SHOW_DELETEORIGINAL; 

	m_pRasterDlgFile->ShowFileConversionDlg((long)m_hWnd); 
}