/*************************************************************************
 * <_xZkqqHx_iDhEiDeAiDeDiDiLjGlM_xHqqkZx_>	MpaModule.cpp
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iClBiCmMiDhGiDiJiDePiDeDiDjD_xHqqkZx_DLL_xZkqqHx_iCmMiDiCiDfHiDiFiBfLiDiLiCpAjCoIiLgAiClHiCoJiDfMiBfLiDfIiBeC_xHqqkZx_
 *			_xZkqqHx_iIoKiCmCiCmMiDhGiDiJiDePiDeDiDjD_xHqqkZx_DLL_xZkqqHx_iCmJiCmNiBeBiIoKiCmCiClOiCkPiDiCiDfHiDiFiBfLiDiLiCkKiKnMiCnMiCoKiCnMiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.08.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/

#include "stdafx.h"

#include <assert.h>			// For assert.
#include "3.h"				// For AnalyzeVersion.
#include "MpaModule.h"		// This header.

// _xZkqqHx_iClBiCmMiDhGiDiJiDePiDeDiDjDiDiCiDfHiDiFiBfLiDiLiCmM_xHqqkZx_CLSID_xZkqqHx_iBeC_xHqqkZx_
// _xZkqqHx_iDhGiDiJiDePiDeDiDjDiDiCiDfHiDiFiBfLiDiLiClCiCmGiCmJiMmFjHeMiCmM_xHqqkZx_CLSID_xZkqqHx_iCkKjFeLjHhGiCmFiClHiBeC_xHqqkZx_
// _xZkqqHx_iMmFjHeMiCmM_xHqqkZx_CLSID_xZkqqHx_iCmNiBeB_xHqqkZx_guidgen.exe _xZkqqHx_iCmFiOoGjDlOiCmFiCkLiCnMiClHiBeC_xHqqkZx_
// _xZkqqHx_jCiNiInDiBeJ_xHqqkZx_
// _xZkqqHx_iDfCiDjDiDhMiBfLiDgMiDjDiDgH_xHqqkZx_CLSID_xZkqqHx_iBgJ_xHqqkZx_PG_COMPONENT_0_CLSID_xZkqqHx_iBgKiCmGjCgMiCkKiInJiCmIiCoJiClBiCmGiBeC_xHqqkZx_
static const GUID PG_MODULE_CLSID = GUID_NULL;

// _xZkqqHx_iDhGiDiJiDePiDeDiDjDiCkKjBmOiJjOiClHiCoJiDeBiDhGiDiKiDfAiBfLiDfGiDiHiDjDiCpAiOhHjCoIiBeC_xHqqkZx_
// _xZkqqHx_iImIiJlKiCpA_xHqqkZx_|_xZkqqHx_iCmFjBgHiCnNiNiHiCoNiClJiCmEiBeC_xHqqkZx_
// FD_APPMODE_DYNAMICDRAW	:DynamicDraw_xZkqqHx_iBeC_xHqqkZx_
// FD_APPMODE_CHIPEDITOR	:_xZkqqHx_iDgAiDgCiDhGiDeHiDgGiDeCiDfOiBeC_xHqqkZx_
// FD_APPMODE_ARROWEDITOR	:_xZkqqHx_jGoOiIpDiDeHiDgGiDeCiDfOiBeC_xHqqkZx_
// FD_APPMODE_HISTORYVIEWER	:_xZkqqHx_jHjKjHpAiDhCiDiFiBfLiDeBiBeC_xHqqkZx_
// FD_APPMODE_HISTORICDRAW	:DynamicDrawPro_xZkqqHx_iBeC_xHqqkZx_

// DynamicDraw_xZkqqHx_iBeBjHjKjHpAiDhCiDiFiBfLiDeBiBeB_xHqqkZx_DDPro_xZkqqHx_iCmJjBmOiJjOiClHiCoJiPoKiNiHiBeC_xHqqkZx_
static const WORD PG_MODULE_APP = 0;

// _xZkqqHx_iDiCiDfHiDiFiBfLiDiLjGlMiBeC_xHqqkZx_
static const wchar_t* PG_MODULE_NAME = L"";

// _xZkqqHx_iDfEiDhMiBfLiDgHiClHiCoJiMlOiMoKiOkPjFmKiOhBiCpAjHpBiLjDiBeC_xHqqkZx_
// _xZkqqHx_jDpKjGhLiMoKiCpAiDfEiDhMiBfLiDgHiClHiCoJiPoKiNiHiCmNiBeB_xHqqkZx_MAKELANGID(LANG_JAPANESE, SUBLANG_DEFAULT)_xZkqqHx_iBeC_xHqqkZx_
// _xZkqqHx_jEhKjHpBiCmMiNmFiMoDiCmN_xHqqkZx_ 0 _xZkqqHx_iCpAjDpMiCoKiCoJiClBiCmGiBeCjEhKjHpBiCkK_xHqqkZx_ 0 _xZkqqHx_iCmMiCnNiCmMiPoKiNiHiCmNiBeBjBfDiCmEiCmMiMlOiMoKiCpAiDfEiDhMiBfLiDgHiBeC_xHqqkZx_
// _xZkqqHx_iJhAiMoKiCkKiDfEiDhMiBfLiDgHiClDiCoKiCmEiCkCiCoKiCmOiBeBiCmHiCmMiMlOiMoKiCmFiCoAiJhAiMoKiCmNjCmKiCoJiCmMiCmF_xHqqkZx_ 0 _xZkqqHx_iCmMiCnNiCpAjAnNjCoIiClFiCmEiCoAjHmHiCkCiBeC_xHqqkZx_
// _xZkqqHx_iDeBiDhGiDiKiCmMiMlOiMoK_xHqqkZx_ID_xZkqqHx_iCmN_xHqqkZx_ IMpgMolipMain::GetAppLangId() _xZkqqHx_iCmFiOoGjDlOiCmFiCkLiCoJiBeC_xHqqkZx_

static LANGID PG_MODULE_SUPPORT_LANG[] = { 0 };

// _xZkqqHx_iDiCiDfHiDiFiBfLiDiLiCmMiDfEiDhMiBfLiDgHiPoOjFpBiBeC_xHqqkZx_
static const wchar_t* PG_MODULE_SUPPORT_INFO = L"";

#if defined(_AFXEXT)
// MFC DLL(_xZkqqHx_iKgHjCkD_xHqqkZx_DLL) _xZkqqHx_iCpAiOgHiCkEiPoKiNiH_xHqqkZx_

static AFX_EXTENSION_MODULE MpaModuleDLL = { NULL, NULL };

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	DllMain
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	DLL_xZkqqHx_iCmMiDiBiDeDiDjDiKnGjAjEiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	_xZkqqHx_iDhHiDiLiDhGiOfBiPmGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iPnKiNnH_xHqqkZx_>	MFC_xZkqqHx_iKgHjCkD_xHqqkZx_DLL_xZkqqHx_jHhAiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCkKiOkJjDkOiNoMjAkMiClFiClN_xHqqkZx_ DllMain _xZkqqHx_iCmNiNoNiPjMiClFiCmEiCkNiClOiClDiCkCiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.08.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
extern "C" int APIENTRY DllMain (HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
{
	// lpReserved _xZkqqHx_iCpAiOgHiCkEiPoKiNiHiCmNiClBiClBiCpAiNoNiPjMiClFiCmEiCkNiClOiClDiCkC_xHqqkZx_
	UNREFERENCED_PARAMETER(lpReserved);

//----- 05.05.24 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_iClBiCmM_xHqqkZx_GUID_xZkqqHx_iCpAiOgHiCmBiCmEiCmNiCkCiCkPiCnMiClJiCpBiBeCiDiCiDfHiDiFiBfLiDiLiMmFjHeMiCmM_xHqqkZx_GUID_xZkqqHx_iCpA_xHqqkZx_guidgen.exe_xZkqqHx_iCmFiOoGjDlOiClFiCmEiCkNiClOiClDiCkCiBeC_xHqqkZx_
//	assert(_tcscmp(PG_MODULE_CLSID_TSTR, _T("{7A736A4A-1397-48E5-9BA1-4BE393B9E307}")) != 0);
//----- 05.05.24 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
	// _xZkqqHx_iDiCiDfHiDiFiBfLiDiLiDgOiDjDiDgIiDiLiCpAjDgPjIfOiClHiCoJiBeC_xHqqkZx_
	FMpgGetModule()->Main(hInstance, dwReason);

	if (dwReason == DLL_PROCESS_ATTACH)
	{
		TRACE("PlugIn Initializing!\n");
		
		// _xZkqqHx_iKgHjCkD_xHqqkZx_ DLL _xZkqqHx_iCpAiCfAiJpBiClOiCkPiPiJiKpKiJlLiClFiCnMiClHiBeC_xHqqkZx_
		if (!AfxInitExtensionModule(MpaModuleDLL, hInstance))
			return 0;

		// _xZkqqHx_iClBiCmM_xHqqkZx_ DLL _xZkqqHx_iCpAiDiKiDfMiBfLiDfI_xHqqkZx_ _xZkqqHx_iDgAiDeGiDeDiDjDiCnGjBhNjDpMiClFiCnMiClHiBeC_xHqqkZx_
		// _xZkqqHx_iDiBiDiC_xHqqkZx_: _xZkqqHx_iKgHjCkD_xHqqkZx_ DLL _xZkqqHx_iCkK_xHqqkZx_ MFC _xZkqqHx_iDeBiDhGiDiKiDfAiBfLiDfGiDiHiDjDiCmFiCmNiCmIiCkN_xHqqkZx_
		//   MFC _xZkqqHx_jFfHiPiA_xHqqkZx_ DLL (ActiveX _xZkqqHx_iDfCiDjDiDgHiDiNiBfLiDiLiCmMiCoGiCkEiCmI_xHqqkZx_)
		//   _xZkqqHx_iCmJiImDjGnJjDeJiCmJiDiKiDjDiDeOiClDiCoKiCoJiPoKiNiHiBeBiClBiCmMiNhDiCpA_xHqqkZx_ DllMain
		//   _xZkqqHx_iCkJiCoHiNoNiPjMiClFiCmEiBeBiClBiCmMiKgHjCkD_xHqqkZx_ DLL _xZkqqHx_iCkJiCoHiDeHiDeOiDfIiDhMiBfLiDgH_xHqqkZx_
		//   _xZkqqHx_iClDiCoKiClNjFmKiCmMiKnGjAjEjDoAiCnGjCmHiJmBiClFiCmEiCkNiClOiClDiCkCiBeC_xHqqkZx_  
		//   _xZkqqHx_iClBiCmMiKgHjCkD_xHqqkZx_ DLL _xZkqqHx_iCpAiOgHjHhAiClHiCoJjFfHiPiA_xHqqkZx_ DLL _xZkqqHx_iCmNiClBiCmMiKgHjCkD_xHqqkZx_ DLL
		//   _xZkqqHx_iCpAiPiJiKpKiJlLiClHiCoJiClNiCnPiCmJjGlOiOkGjDeJiCmJiClLiCmMiKnGjAjEiCpAiMmEiCnBiPgPiClFiCnMiClHiBeC_xHqqkZx_ 
		//   _xZkqqHx_iClLiCoKiImIiKePiCmMiPoKiNiHiCmNiBeB_xHqqkZx_CDynLinkLibrary _xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCmN_xHqqkZx_
		//   _xZkqqHx_jFfHiPiA_xHqqkZx_ DLL _xZkqqHx_iCmMiDiKiDfMiBfLiDfI_xHqqkZx_ _xZkqqHx_iDgAiDeGiDeDiDjDiCnGiDeBiDfOiDgCiDgAiClDiCoKiClIiBeB_xHqqkZx_
		//   _xZkqqHx_iClLiCmMiMiLiJmKiPgEjBoFiCmIjGoCjBoIiCmGiCmIiCoIiCnMiClHiBeC_xHqqkZx_

		new CDynLinkLibrary(MpaModuleDLL);
	}
	else if (dwReason == DLL_PROCESS_DETACH)
	{
		TRACE("PlugIn Terminating!\n");
		// _xZkqqHx_iDgGiDfIiDgHiDiJiDeOiDfOiCkKiMmEiCnBiPgPiClDiCoKiCoJjBePiCmJiDiJiDeDiDhFiDiJiDiKiCpAiPeJjHlJiClFiCnMiClH_xHqqkZx_
		AfxTermExtensionModule(MpaModuleDLL);
	}
	return 1;   // ok
} // DllMain.

#elif !defined(_AFX)
// MFC _xZkqqHx_iCpAiOgHiCoNiCmIiCkCiPoKiNiHiBeC_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	DllMain
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	DLL_xZkqqHx_iCmMiDiBiDeDiDjDiKnGjAjEiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	_xZkqqHx_iDhHiDiLiDhGiOfBiPmGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iPnKiNnH_xHqqkZx_>	_xZkqqHx_jEpB_xHqqkZx_MFC DLL_xZkqqHx_jHhAiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCkKiOkJjDkOiNoMjAkMiClFiClN_xHqqkZx_ DllMain _xZkqqHx_iCmNiNoNiPjMiClFiCmEiCkNiClOiClDiCkCiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.08.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
extern "C" BOOL APIENTRY DllMain (HANDLE hModule, DWORD ul_reason_for_call,
									LPVOID lpReserved)
{
//----- 05.05.24 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_iClBiCmM_xHqqkZx_GUID_xZkqqHx_iCpAiOgHiCmBiCmEiCmNiCkCiCkPiCnMiClJiCpBiBeCiDiCiDfHiDiFiBfLiDiLiMmFjHeMiCmM_xHqqkZx_GUID_xZkqqHx_iCpA_xHqqkZx_guidgen.exe_xZkqqHx_iCmFiOoGjDlOiClFiCmEiCkNiClOiClDiCkCiBeC_xHqqkZx_
//	assert(_tcscmp(PG_MODULE_CLSID_TSTR, _T("{7A736A4A-1397-48E5-9BA1-4BE393B9E307}")) != 0);
//----- 05.05.24 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
	// _xZkqqHx_iDiCiDfHiDiFiBfLiDiLiDgOiDjDiDgIiDiLiCpAjDgPjIfOiClHiCoJiBeC_xHqqkZx_
	return FMpgGetModule()->Main(hModule, ul_reason_for_call);
} // DllMain.
#endif //!defined(_AFX)

// MFC DLL(_xZkqqHx_jEpBiKgHjCkD_xHqqkZx_DLL) _xZkqqHx_iCmMiPoKiNiHiBeB_xHqqkZx_MFC_xZkqqHx_iDfIiDfOiDgFiDeCiDgCiDeOiDiKiDjDiDeOiCmMiPoKiNiHiCmNiBeB_xHqqkZx_
// DllMain_xZkqqHx_iCmN_xHqqkZx_MFC_xZkqqHx_iCmFjDgPjIfOiClDiCoKiCoJiCmMiCmFiBeBiClBiClBiCmFiCmNjCoIiLgAiClFiCnMiClJiCpBiBeC_xHqqkZx_

// _xZkqqHx_iCfAiJpBiClOiCkPjCoIiLgAiBeC_xHqqkZx_
FOR_SUB_DEF_ONCE

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	DllDoConvert
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhEiDeAiDeDiDiLiMgAiOkOiCpAjFmPiKlHiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wcpTypeFrom		:_xZkqqHx_jFmPiKlHiMlDiDfOiDeDiDhGiCpAiOhHjCoIiBeC_xHqqkZx_
 *							 _xZkqqHx_jHoBiBeG_xHqqkZx_"*fcore" "C:\doc\a.mdrw"
 *			wcpVersionFrom	:_xZkqqHx_jFmPiKlHiMlDiDgPiBfLiDfHiDiHiDjDiCpAiOhHjCoIiBeC_xHqqkZx_
 *							 _xZkqqHx_jHoBiBeG_xHqqkZx_"2.0" "3.0"
 *			pStorageFrom	:_xZkqqHx_jFmPiKlHiMlDiCmMiDhEiDeAiDeDiDiLiBeBiIlNiCkCiCmNiDfIiDgHiDiMiBfLiDfHiCpAiOhHjCoIiBeC_xHqqkZx_
 *							 wcpTypeFrom_xZkqqHx_iCmJ_xHqqkZx_ _xZkqqHx_jFkBiNiHiDfCiDeB_xHqqkZx_ "*ccore" _xZkqqHx_iCkKiOhHjCoIiClDiCoKiCmE_xHqqkZx_
 *							 _xZkqqHx_iCkCiCoJiPoKiNiHiCmNiBeB_xHqqkZx_LPSTORAGE_xZkqqHx_iMfOiCmMiDfIiDgHiDiMiBfLiDfHiBeC_xHqqkZx_
 *							 wcpTypeFrom_xZkqqHx_iCmJ_xHqqkZx_ _xZkqqHx_iDhEiDiJiDgCiDgHiDfCiDeB_xHqqkZx_ "*fcore" "*xcore" _xZkqqHx_iCkK_xHqqkZx_
 *							 _xZkqqHx_iOhHjCoIiClDiCoKiCmEiCkCiCoJiPoKiNiHiCmNiBeB_xHqqkZx_MfcFile*_xZkqqHx_iMfOiCmMiDhEiDeAiDeDiDiLiBeC_xHqqkZx_
 *							 _xZkqqHx_iClLiCoKiImIiKePiCmMiPoKiNiHiCmN_xHqqkZx_NULL_xZkqqHx_iBeC_xHqqkZx_
 *			wcpTypeTo		:_xZkqqHx_jFmPiKlHjAoGiDfOiDeDiDhGiCpAiOhHjCoIiBeC_xHqqkZx_
 *							 _xZkqqHx_jHoBiBeG_xHqqkZx_"*fcore" "*fcore2" "C:\doc\a.mdrw"
 *			wcpVersionTo	:_xZkqqHx_jFmPiKlHjAoGiDgPiBfLiDfHiDiHiDjDiCpAiOhHjCoIiBeC_xHqqkZx_
 *							 _xZkqqHx_jHoBiBeG_xHqqkZx_"2.0" "3.0"
 *			pStorageTo		:_xZkqqHx_jFmPiKlHjAoGiCmMiDhEiDeAiDeDiDiLiBeBiIlNiCkCiCmNiDfIiDgHiDiMiBfLiDfHiCpAiOhHjCoIiBeC_xHqqkZx_
 *							 wcpTypeTo_xZkqqHx_iCmJ_xHqqkZx_ _xZkqqHx_jFkBiNiHiDfCiDeB_xHqqkZx_ "*ccore" _xZkqqHx_iCkKiOhHjCoIiClDiCoKiCmE_xHqqkZx_
 *							 _xZkqqHx_iCkCiCoJiPoKiNiHiCmNiBeB_xHqqkZx_LPSTORAGE_xZkqqHx_iMfOiCmMiDfIiDgHiDiMiBfLiDfHiBeC_xHqqkZx_
 *							 wcpTypeTo_xZkqqHx_iCmJ_xHqqkZx_ _xZkqqHx_iDhEiDiJiDgCiDgHiDfCiDeB_xHqqkZx_ "*fcore" "*xcore" _xZkqqHx_iCkK_xHqqkZx_
 *							 _xZkqqHx_iOhHjCoIiClDiCoKiCmEiCkCiCoJiPoKiNiHiCmNiBeB_xHqqkZx_MfcFile*_xZkqqHx_iMfOiCmMiDhEiDeAiDeDiDiLiBeC_xHqqkZx_
 *							 _xZkqqHx_iClLiCoKiImIiKePiCmMiPoKiNiHiCmN_xHqqkZx_NULL_xZkqqHx_iBeC_xHqqkZx_
 *			pImageData		:_xZkqqHx_iPjBiCkLiPgPiClHiDhEiDeAiDeDiDiLiCmMiDeDiDiBiBfLiDfHiCpAiOhHjCoIiBeC_xHqqkZx_
 *							 _xZkqqHx_iDgGiDhEiDeIiDiLiDgHiBgJiCkJiCoHiDeDiDiBiBfLiDfHiBgKiCmMiPoKiNiHiCmN_xHqqkZx_ NULL_xZkqqHx_iBeC_xHqqkZx_
 *			lImageSize		:pImageData_xZkqqHx_iCmMiDfEiDeDiDfJiCpAiOhHjCoIiBeC_xHqqkZx_
 *			szImage			:_xZkqqHx_iDeDiDiBiBfLiDfHiDfEiDeDiDfJiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iPnKiNnH_xHqqkZx_>	_xZkqqHx_iClBiCmMiDeJiDhFiDfHiDeGiDeOiDgHiCmMiDfCiDjDiDgPiBfLiDfOiCkKiDfEiDhMiBfLiDgHiClFiCmEiCkCiCoJjFmPiKlHiCmM_xHqqkZx_
 *			_xZkqqHx_jFmPiKlHiMlD_xHqqkZx_/_xZkqqHx_jFmPiKlHjAoGiCpAiOhHjCoIiClHiCoJiBeC_xHqqkZx_
 *			FMfcFileConvManager::DoConvert_xZkqqHx_iCmFiCmNiBeBiClBiCmMjFmPiKlHiCpAjFkBjAjEiJpB_xHqqkZx_
 *			_xZkqqHx_iMeKiCoIjFnEiClFiCmEiPiKjCoIiCmMiDhEiDeIiBfLiDhNiDgCiDgHiCpAjDlOiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_jFmPiKlHiCmJiOlIjEhDiClFiClNiPoKiNiHiCmNiBeBiCkJiCmIiCoHiClI_xHqqkZx_IMpgUtilErr::ThrowXXX_xZkqqHx_iCmF_xHqqkZx_
 *			_xZkqqHx_jHoBiKePiCpAjEkNjAlGiClDiClJiCoJiClBiCmGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDhEiDeAiDeDiDiLiBhF_xHqqkZx_MMM Ver1.0_xZkqqHx_iMgAiOkOiBhGiCkJiCoHjFmPiKlHiCmMiPoKiNiH_xHqqkZx_
 *			wcpTypeFrom = "C:\Doc\ABC.MMM"
 *			wcpVersionFrom	= "1.0"
 *			_xZkqqHx_iDeBiBfLiDeKiDeDiDhFiBhF_xHqqkZx_fcore Ver2.0 _xZkqqHx_iMgAiOkOiBhGiCkJiCoHjFmPiKlHiCmMiPoKiNiH_xHqqkZx_
 *			wcpTypeFrom = "*fcore"
 *			wcpVersionFrom	= "2.0"
 *
 *			_xZkqqHx_jFmPiKlHjAoGiCmJ_xHqqkZx_"*fcore"_xZkqqHx_iCpAiOhHjCoIiClHiCoJiPoKiNiHiBeBiDhHiDgCiDfPiCmJiLeMjIfOiClDiCoKiCoJjFlGiPjBiDhEiDeIiBfLiDhNiDgCiDgH_xHqqkZx_
 *			_xZkqqHx_iCpAjAjEjCgMiCmGiClFiCmEjCmHiJmBiCmFiCkLiCoJiBeCjAjEjCgMiCpAjCmHiJmBiClFiCmIiCkCiPoKiNiHiCmNiBeBjFmPiKlHiMlDiCmMiDgGiBfLiDfOiCmJ_xHqqkZx_
 *			_xZkqqHx_iKoOiCmDiCkCiCmEjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_jHoBiBeG_xHqqkZx_
 *			FD_DTP_PORTABLE_FORMAT_xZkqqHx_iCmMiPoKiNiHiCmN_xHqqkZx_ "*fcore2"
 *			FD_DTP_TEMPLATE_FORMAT_xZkqqHx_iCmMiPoKiNiHiCmN_xHqqkZx_ "*fcore3"
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.05.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
STDAPI DllDoConvert (	const wchar_t* wcpTypeFrom,
						const wchar_t* wcpVersionFrom,
						void* pStorageFrom,
						const wchar_t* wcpTypeTo,
						const wchar_t* wcpVersionTo,
						void* pStorageTo,
						const BYTE* pImageData,
						long lImageSize,
						const MfcSize& szImage)
{
	// fcore _xZkqqHx_iCmMiMoDiCmMjAjEjCgMiCpAjDmHiCnNiNjOiCnOiBeCjAjEjCgMiOhHjCoIiCkKjGlDiCkCiPoKiNiHiCmN_xHqqkZx_ FD_DTP_NONE = 0 _xZkqqHx_iCmGiCmIiCoJiBeC_xHqqkZx_
	FTDocumentFormat formTo = (FTDocumentFormat)wcstol(wcpTypeTo + wcslen(L"*fcore"), NULL, 10);
	if (wcscmp(wcpVersionFrom, L"3.0") == 0 && wcscmp(wcpVersionTo, L"4.0") == 0)
		Convert3To4((MfcFile*)pStorageFrom, (MfcFile*)pStorageTo, formTo);
	else
	if (wcscmp(wcpVersionFrom, L"4.0") == 0 && wcscmp(wcpVersionTo, L"3.0") == 0)
		Convert4To3((MfcFile*)pStorageFrom, (MfcFile*)pStorageTo, formTo);
	return S_OK;
} // DllDoConvert.


// MolipSDK_xZkqqHx_iCpAiOgHiCkEiPoKiNiHiCmNiBeBiClBiCoKiCpAjCoIiLgAiBeC_xHqqkZx_
// _xZkqqHx_jFeLiClIiDiCiDfHiDiFiBfLiDiL_xHqqkZx_CPP_xZkqqHx_iDhEiDeAiDeDiDiLiCmMiNmFiMoDiCmMiNhDiCmJjChFiCkNiClBiCmGiBeC_xHqqkZx_
// _xZkqqHx_jFeLiClIiIoKiJnDiPiKiClOiCkPiCmF_xHqqkZx_include_xZkqqHx_iClHiCoJiClBiCmGiBeC_xHqqkZx_
#include "MpgMolipSdk.cpp"
