require "PerlLib.pl";

$/ = ";";	# Paragraph mode.

# DD_xZkqqHx_iDhEiDeIiDiLiDfPiCkJiCoHjDmHiCnNiNjOiCnOiDfMiBfLiDfIiDhEiDeAiDeDiDiLjGlMiBeC_xHqqkZx_
# _xZkqqHx_jHoBiBeG_xHqqkZx_$dd_fin_h = UtilFont.h
local($dd_fin_h) = "${g_FileName}.h";
print "Extract from ${dd_fin_h} ....";

#############################################################
# SDK_xZkqqHx_iDhEiDeIiDiLiDfPiCmJiPgPjHmNiClHiCoJiDeOiDiJiDfIiDhHiDgCiDfPiDhEiDeAiDeDiDiLjGlMiBeC_xHqqkZx_
# _xZkqqHx_jHoBiBeG_xHqqkZx_$sdk_fout_h = ../MolipSDK/FCUtilFont.h
#############################################################

local($sdk_fout_h) = "../MolipSDK/FC${g_FileName}.h";
local($sdk_fout_h_old) = $sdk_fout_h.'.old';
local($fc_fout_h) = "FC${g_FileName}.h";
local($fc_fin_h) = $fc_fout_h;


open(FC_FOUT_H, ">${fc_fout_h}") || die "Cannot open ${fc_fout_h}\n";

#############################################################
# DD_xZkqqHx_iDhEiDeIiDiLiDfPiCmJiPgPjHmNiClHiCoJiDeOiDiJiDfIiDeDiDjDiDhGiDiKiDiBiDjDiDgHiDhEiDeAiDeDiDiLjGlMiBeC_xHqqkZx_
# _xZkqqHx_jHoBiBeG_xHqqkZx_$dd_fout_cpp = FCUtilFont.cpp
#############################################################

local($fc_fout_cpp) = "FC${g_FileName}.cpp";
local($fc_fout_cpp_old) = $fc_fout_cpp.'.old';
rename($fc_fout_cpp, $fc_fout_cpp_old);
open(FC_FOUT_CPP, ">${fc_fout_cpp}") || die "Cannot open ${fc_fout_cpp}\n";

#############################################################
# _xZkqqHx_iDeOiDiJiDfIiDhHiDgCiDfPiDhEiDeAiDeDiDiL_xHqqkZx_(Ex.FCUtilFont.h)_xZkqqHx_iCnGiPgPjHmNiBeC_xHqqkZx_
#############################################################

print FC_FOUT_H << "EndOfText";

//
// _xZkqqHx_iClBiCmMiDhEiDeAiDeDiDiLiCmNiBeB_xHqqkZx_${g_FileName}.h_xZkqqHx_iCkJiCoHiOkJjDkOiNoMjAkMiClDiCoKiCnMiClHiBeC_xHqqkZx_
// _xZkqqHx_iClBiCmMiDhEiDeAiDeDiDiLiCpAjFnCiPfHiClFiCmEiCmNiCkCiCkPiCnMiClJiCpBiBeC_xHqqkZx_
//
#ifndef __FC${g_FileName}_h
#define __FC${g_FileName}_h

#ifndef __${g_FileName}_h

EndOfText

#############################################################
# _xZkqqHx_iDeOiDiJiDfIiDeDiDjDiDhGiDiKiDiBiDjDiDgHiDhEiDeAiDeDiDiL_xHqqkZx_(Ex.FCUtilFont.cpp)_xZkqqHx_iCnGiPgPjHmNiBeC_xHqqkZx_
#############################################################

print FC_FOUT_CPP << "EndOfText";

// ${fc_fout_cpp} : _xZkqqHx_iDeDiDjDiDhGiDiKiDiBiDjDiDgFiBfLiDfGiDiHiDjD_xHqqkZx_ _xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_
//
// _xZkqqHx_iClBiCmMiDhEiDeAiDeDiDiLiCmNiBeB_xHqqkZx_${g_FileName}.h_xZkqqHx_iCkJiCoHiOkJjDkOiNoMjAkMiClDiCoKiCnMiClHiBeC_xHqqkZx_
// _xZkqqHx_iClBiCmMiDhEiDeAiDeDiDiLiCpAjFnCiPfHiClFiCmEiCmNiCkCiCkPiCnMiClJiCpBiBeC_xHqqkZx_

#include "stdafx.h"
#include "${dd_fin_h}"
#include "${fc_fout_h}"	// This header.

EndOfText

#############################################################
# _xZkqqHx_iDeOiDiJiDfIiDhHiDgCiDfPiDhEiDeAiDeDiDiL_xHqqkZx_(Ex.FCUtilFont.h)_xZkqqHx_iCnG_xHqqkZx_
# _xZkqqHx_iMfOiPoOjFpBjDjJ_xHqqkZx_ --- <EXPORT TO SDK> --- _xZkqqHx_iCpAiPgPjHmNiBeC_xHqqkZx_
#############################################################

local($l_bIsRawMode) = "";

open(DD_FIN_H, "${dd_fin_h}") || die "Cannot open ${dd_fin_h}\n";
WID:while (<DD_FIN_H>)
{
	if (/<EXPORT TO SDK>/)
	#----- _xZkqqHx_jAiCiCoKjHkMiClFiDiCiBfLiDgIiKeKiOgO_xHqqkZx_ <EXPORT TO SDK>_xZkqqHx_iCmMiPoKiNiH_xHqqkZx_ -----
	{
		$l_bIsRawMode = "1";
	}
	elsif (/<\/EXPORT TO SDK>/)
	#----- _xZkqqHx_jAiCiCoKjHkMiClFiDiCiBfLiDgIiPeJjHlJ_xHqqkZx_ <\/EXPORT TO SDK>_xZkqqHx_iCmMiPoKiNiH_xHqqkZx_ -----
	{
		$l_bIsRawMode = "0";
	}
	elsif ($l_bIsRawMode eq "1")
	#----- _xZkqqHx_jAiCiCoKjHkMiClFiDiCiBfLiDgI_xHqqkZx_ <EXPORT TO SDK>_xZkqqHx_jCiGiCmMiPoKiNiH_xHqqkZx_ -----
	{
		print FC_FOUT_H;
	}
}
close DD_FIN_H;

#############################################################
# _xZkqqHx_iDeOiDiJiDfIiDhHiDgCiDfPiDhEiDeAiDeDiDiL_xHqqkZx_(Ex.FCUtilFont.h)_xZkqqHx_iCnGiPgPjHmN_xHqqkZx_
#############################################################

print FC_FOUT_H << "EndOfText";

#endif//__${g_FileName}_h

interface IMpg${g_FileName}
{

EndOfText

#############################################################
# _xZkqqHx_iDeOiDiJiDfIiDhHiDgCiDfPiDhEiDeAiDeDiDiL_xHqqkZx_(Ex.FCUtilFont.h)_xZkqqHx_iCnGiBeB_xHqqkZx_
# _xZkqqHx_iDiBiDjDiDgPiKnGjAjEjCoIiLgAiCpAiPgPjHmNiBeC_xHqqkZx_
# _xZkqqHx_jHoBiBeG_xHqqkZx_virtual const LOGFONT& GetStdFont () const;
#############################################################

local($l_1) = "";
local($l_2) = "";
local($l_3) = "";
local($l_args) = "";
local($l_bIsNotExport) = "";

open(DD_FIN_H, "${dd_fin_h}") || die "Cannot open ${dd_fin_h}\n";
WID:while (<DD_FIN_H>)
{
	if (/<NOT EXPORT TO SDK>/)
	#----- _xZkqqHx_iPgPjHmNiLnGiOhOiDiCiBfLiDgIiKeKiOgO_xHqqkZx_ <NOT EXPORT TO SDK>_xZkqqHx_iCmMiPoKiNiH_xHqqkZx_ -----
	{
		$l_bIsNotExport = "1";
	}
	elsif (/<\/NOT EXPORT TO SDK>/)
	#----- _xZkqqHx_iPgPjHmNiLnGiOhOiDiCiBfLiDgIiPeJjHlJ_xHqqkZx_ <NOT EXPORT TO SDK>_xZkqqHx_iCmMiPoKiNiH_xHqqkZx_ -----
	{
		$l_bIsNotExport = "0";
	}
	# _xZkqqHx_iPgPjHmNiLnGiOhOiDiCiBfLiDgI_xHqqkZx_ <NOT EXPORT TO SDK>_xZkqqHx_jCiGiCmMiPoKiNiHiCmNiOjPiCmMiDiLiBfLiDhGiCnGiBeC_xHqqkZx_
	next WID if ($l_bIsNotExport eq "1");

	# _xZkqqHx_iDfMiBfLiDfIiDhEiDeAiDeDiDiLjCiGiCmM_xHqqkZx_ extern XXX_xZkqqHx_iBeB_xHqqkZx_inline XXX _xZkqqHx_iCkJiCoHiPoOjFpBiOoGjDlOiBeC_xHqqkZx_
	if (/\nextern\s+([\s\w\&\*]+[\w\&\*])\s+(\w+)\s*\(([^;]*)\)\s*;/ or
		/\ninline\s+([\s\w\&\*]+[\w\&\*])\s+(\w+)\s*\(([^{]*)\)\s*/)
	{
		if (not /[^\.]\.\.\.[^\.]/)
		{
			$l_1 = $1;
			$l_2 = $2;
			$l_3 = $3;
			# _xZkqqHx_iIpIjAjEjCoIiLgAiCmMiBeBiDgGiDhEiDeIiDiLiDgHjCgMiBgJ_xHqqkZx_= XX_xZkqqHx_iBgKiCpAiNoNiPjMiClHiCoJiBeC_xHqqkZx_
			$l_args = &PFArgsToStdArgs($l_3);
			# _xZkqqHx_iKnGjAjEiNmFiPiJiCmM_xHqqkZx_ FF _xZkqqHx_iCpAiOoGiCoIiPjMiCkNiBeC_xHqqkZx_
			$l_2 =~ s/^FF//;
			print FC_FOUT_H "\tvirtual $l_1\t$l_2 ($l_args) const;\n";
		}
	}
}

##----- 06.03.20 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
##local($l_bIsNotExport) = "";
##foreach $_ (@g_OptionalFunc)
##{
##	if (/<NOT EXPORT TO SDK>/)
##	#----- _xZkqqHx_iPgPjHmNiLnGiOhOiDiCiBfLiDgIiKeKiOgO_xHqqkZx_ <NOT EXPORT TO SDK>_xZkqqHx_iCmMiPoKiNiH_xHqqkZx_ -----
##	{
##		$l_bIsNotExport = "1";
##	}
##	elsif (/<\/NOT EXPORT TO SDK>/)
##	#----- _xZkqqHx_iPgPjHmNiLnGiOhOiDiCiBfLiDgIiPeJjHlJ_xHqqkZx_ <NOT EXPORT TO SDK>_xZkqqHx_iCmMiPoKiNiH_xHqqkZx_ -----
##	{
##		$l_bIsNotExport = "0";
##	}
##	# _xZkqqHx_iPgPjHmNiLnGiOhOiDiCiBfLiDgI_xHqqkZx_ <NOT EXPORT TO SDK>_xZkqqHx_jCiGiCmMiPoKiNiHiCmNiOjPiCmMiDiLiBfLiDhGiCnGiBeC_xHqqkZx_
##	next WID if ($l_bIsNotExport eq "1");
##
##	# _xZkqqHx_iDfMiBfLiDfIiDhEiDeAiDeDiDiLjCiGiCmM_xHqqkZx_ extern XXX_xZkqqHx_iBeB_xHqqkZx_inline XXX _xZkqqHx_iCkJiCoHiPoOjFpBiOoGjDlOiBeC_xHqqkZx_
##	if (/\nextern\s+([\s\w\&\*]+[\w\&\*])\s+(\w+)\s*\(([^;]*)\)\s*;/ or
##		/\ninline\s+([\s\w\&\*]+[\w\&\*])\s+(\w+)\s*\(([^{]*)\)\s*/)
##	{
##		$l_1 = $1;
##		$l_2 = $2;
##		$l_3 = $3;
##		# _xZkqqHx_iIpIjAjEjCoIiLgAiCmMiBeBiDgGiDhEiDeIiDiLiDgHjCgMiBgJ_xHqqkZx_= XX_xZkqqHx_iBgKiCpAiNoNiPjMiClHiCoJiBeC_xHqqkZx_
##		$l_args = &PFArgsToStdArgs($l_3);
##		# _xZkqqHx_iKnGjAjEiNmFiPiJiCmM_xHqqkZx_ FF _xZkqqHx_iCpAiOoGiCoIiPjMiCkNiBeC_xHqqkZx_
##		$l_2 =~ s/^FF##;
##		print FC_FOUT_H "\tvirtual $l_1\t$l_2 ($l_args) const;\n";
##	}
##}
##----- 06.03.20 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

close DD_FIN_H;

#############################################################
# _xZkqqHx_iDeOiDiJiDfIiDhHiDgCiDfPiDhEiDeAiDeDiDiL_xHqqkZx_(Ex.FCUtilFont.h)_xZkqqHx_iCnGiPgPjHmN_xHqqkZx_
#############################################################

print FC_FOUT_H << "EndOfText";

};// interface IMpg${g_FileName}.

#endif//__FC${g_FileName}_h

EndOfText

#############################################################
# _xZkqqHx_iDeOiDiJiDfIiDeDiDjDiDhGiDiKiDiBiDjDiDgHiDhEiDeAiDeDiDiL_xHqqkZx_(Ex.FCUtilFont.cpp)_xZkqqHx_iCnGiBeB_xHqqkZx_
# _xZkqqHx_iDiBiDjDiDgPiKnGjAjEiDeDiDjDiDhGiDiKiDiBiDjDiDgHiCpAiPgPjHmNiBeC_xHqqkZx_
# _xZkqqHx_jHoBiBeG_xHqqkZx_
# const LOGFONT& GetStdFont () const
# {
#    return FFGetStdFont();
# }
#############################################################

local($l_2Orig) = "";
#local($l_vars) = "";
local($l_proc) = "";
local($l_bIsNotExport) = "";

open(DD_FIN_H, "${dd_fin_h}") || die "Cannot open ${dd_fin_h}\n";
WID:while (<DD_FIN_H>)
{
	if (/<NOT EXPORT TO SDK>/)
	#----- _xZkqqHx_iPgPjHmNiLnGiOhOiDiCiBfLiDgIiKeKiOgO_xHqqkZx_ <NOT EXPORT TO SDK>_xZkqqHx_iCmMiPoKiNiH_xHqqkZx_ -----
	{
		$l_bIsNotExport = "1";
	}
	elsif (/<\/NOT EXPORT TO SDK>/)
	#----- _xZkqqHx_iPgPjHmNiLnGiOhOiDiCiBfLiDgIiPeJjHlJ_xHqqkZx_ <NOT EXPORT TO SDK>_xZkqqHx_iCmMiPoKiNiH_xHqqkZx_ -----
	{
		$l_bIsNotExport = "0";
	}
	# _xZkqqHx_iPgPjHmNiLnGiOhOiDiCiBfLiDgI_xHqqkZx_ <NOT EXPORT TO SDK>_xZkqqHx_jCiGiCmMiPoKiNiHiCmNiOjPiCmMiDiLiBfLiDhGiCnGiBeC_xHqqkZx_
	next WID if ($l_bIsNotExport eq "1");

	# _xZkqqHx_iDfMiBfLiDfIiDhEiDeAiDeDiDiLjCiGiCmM_xHqqkZx_ extern XXX_xZkqqHx_iBeB_xHqqkZx_inline XXX _xZkqqHx_iCkJiCoHiPoOjFpBiOoGjDlOiBeC_xHqqkZx_
	if (/\nextern\s+([\s\w\&\*]+[\w\&\*])\s+(\w+)\s*\(([^;]*)\)\s*;/ or
		/\ninline\s+([\s\w\&\*]+[\w\&\*])\s+(\w+)\s*\(([^{]*)\)\s*/)
	{
		if (not /[^\.]\.\.\.[^\.]/)
		{
			$l_1 = $1;
			$l_2 = $2;
			$l_2Orig = $2;
			$l_3 = $3;
			# _xZkqqHx_iKnGjAjEiNmFiPiJiCmM_xHqqkZx_ FF _xZkqqHx_iCpAiOoGiCoIiPjMiCkNiBeC_xHqqkZx_
			$l_2 =~ s/^FF//;
			# _xZkqqHx_iIpIjAjEjCoIiLgAiCmMiBeBiDgGiDhEiDeIiDiLiDgHjCgMiBgJ_xHqqkZx_= XX_xZkqqHx_iBgKiCpAiNoNiPjMiClHiCoJiBeC_xHqqkZx_
			$l_args = &PFArgsToStdArgs($l_3);
			# _xZkqqHx_iKnGjAjEiOmAiNhDiCmMjFlGiOjKjHpBiCpAiNoMjAkMiBeC_xHqqkZx_
			$l_proc = &PFMakeFuncStr($l_1, "::${l_2Orig}", $l_3);
			print FC_FOUT_CPP << "EndOfText";

$l_1 IMpg${g_FileName}::$l_2 ($l_args) const
{
${l_proc}
} // IMpg${g_FileName}::$l_2.

EndOfText
		}
	}
}

##----- 06.03.20 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
##local($l_bIsNotExport) = "";
##foreach $_ (@g_OptionalFunc)
##{
##	if (/<NOT EXPORT TO SDK>/)
##	#----- _xZkqqHx_iPgPjHmNiLnGiOhOiDiCiBfLiDgIiKeKiOgO_xHqqkZx_ <NOT EXPORT TO SDK>_xZkqqHx_iCmMiPoKiNiH_xHqqkZx_ -----
##	{
##		$l_bIsNotExport = "1";
##	}
##	elsif (/<\/NOT EXPORT TO SDK>/)
##	#----- _xZkqqHx_iPgPjHmNiLnGiOhOiDiCiBfLiDgIiPeJjHlJ_xHqqkZx_ <NOT EXPORT TO SDK>_xZkqqHx_iCmMiPoKiNiH_xHqqkZx_ -----
##	{
##		$l_bIsNotExport = "0";
##	}
##	# _xZkqqHx_iPgPjHmNiLnGiOhOiDiCiBfLiDgI_xHqqkZx_ <NOT EXPORT TO SDK>_xZkqqHx_jCiGiCmMiPoKiNiHiCmNiOjPiCmMiDiLiBfLiDhGiCnGiBeC_xHqqkZx_
##	next WID if ($l_bIsNotExport eq "1");
##
##	# _xZkqqHx_iDfMiBfLiDfIiDhEiDeAiDeDiDiLjCiGiCmM_xHqqkZx_ extern XXX_xZkqqHx_iBeB_xHqqkZx_inline XXX _xZkqqHx_iCkJiCoHiPoOjFpBiOoGjDlOiBeC_xHqqkZx_
##	if (/\nextern\s+([\s\w\&\*]+[\w\&\*])\s+(\w+)\s*\(([^;]*)\)\s*;/ or
##		/\ninline\s+([\s\w\&\*]+[\w\&\*])\s+(\w+)\s*\(([^{]*)\)\s*/)
##	{
##		$l_1 = $1;
##		$l_2 = $2;
##		$l_2Orig = $2;
##		$l_3 = $3;
##		# _xZkqqHx_iKnGjAjEiNmFiPiJiCmM_xHqqkZx_ FF _xZkqqHx_iCpAiOoGiCoIiPjMiCkNiBeC_xHqqkZx_
##		$l_2 =~ s/^FF##;
##		# _xZkqqHx_iIpIjAjEjCoIiLgAiCmMiBeBiDgGiDhEiDeIiDiLiDgHjCgMiBgJ_xHqqkZx_= XX_xZkqqHx_iBgKiCpAiNoNiPjMiClHiCoJiBeC_xHqqkZx_
##		$l_args = &PFArgsToStdArgs($l_3);
###		# _xZkqqHx_iIpIjAjEjCoIiLgAiCkJiCoHiBeBjFmPjAjEjHpBiCpAiNoMjAkMiClHiCoJiBeC_xHqqkZx_
###		$l_vars = &PFArgsToVars($l_3);
##		# _xZkqqHx_iKnGjAjEiOmAiNhDiCmMjFlGiOjKjHpBiCpAiNoMjAkMiBeC_xHqqkZx_
##		$l_proc = &PFMakeFuncStr($l_1, "::${l_2Orig}", $l_3);
##		print FC_FOUT_CPP << "EndOfText";
##
##$l_1 IMpg${g_FileName}::$l_2 ($l_args) const
##{
##${l_proc}
##} ## IMpg${g_FileName}::$l_2.
##
##EndOfText
##	}
##}
##----- 06.03.20 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

close DD_FIN_H;

close FC_FOUT_H;
close FC_FOUT_CPP;

rename($sdk_fout_h, $sdk_fout_h_old);

open(FC_FIN_H, "${fc_fin_h}") || die "Cannot open ${fc_fin_h}\n";
open(SDK_FOUT_H, ">${sdk_fout_h}") || die "Cannot open ${sdk_fout_h}\n";
while (<FC_FIN_H>)
{
	s/\bCOleDateTime\b/MfcOleDateTime/g;
	s/\bCBitmap\b/MfcBitmap/g;
	s/\bCFont\b/MfcFont/g;
	s/\bCPen\b/MfcPen/g;
	s/\bCBrush\b/MfcBrush/g;
	s/\bCPalette\b/MfcPalette/g;
	s/\bCRect\b/MfcRect/g;
	s/\bCGdiObject\b/MfcGdiObject/g;
	s/\bCRgn\b/MfcRgn/g;
	s/\bCPoint\b/MfcPoint/g;
	s/\bCPropertyPage\b/MfcPropertyPage/g;
	s/\bCOleClientItem\b/MfcOleClientItem/g;
	s/\bCCmdUI\b/MfcCmdUI/g;
	s/\bCPrintInfo\b/MfcPrintInfo/g;
	s/\bCDumpContext\b/MfcDumpContext/g;
	s/\bCPreviewView\b/MfcPreviewView/g;
	s/\bCCreateContext\b/MfcCreateContext/g;
	s/\bCOleServerItem\b/MfcOleServerItem/g;
	s/\bCOleDataObject\b/MfcOleDataObject/g;
	s/\bCRuntimeClass\b/MfcRuntimeClass/g;
	s/\bCArchive\b/MfcArchive/g;
	s/\bAFX_CMDHANDLERINFO\b/AFX_MFC_CMDHANDLERINFO/g;
	s/\bCTypeLibCache\b/MfcTypeLibCache/g;
	s/\bAFX_MSGMAP\b/AFX_MFC_MSGMAP/g;
	s/\bAFX_OLECMDMAP\b/AFX_MFC_OLECMDMAP/g;
	s/\bAFX_DISPMAP\b/AFX_MFC_DISPMAP/g;
	s/\bAFX_CONNECTIONMAP\b/AFX_MFC_CONNECTIONMAP/g;
	s/\bAFX_INTERFACEMAP\b/AFX_MFC_INTERFACEMAP/g;
	s/\bAFX_EVENTSINKMAP\b/AFX_MFC_EVENTSINKMAP/g;
	s/\bCPtrArray\b/MfcPtrArray/g;
	s/\bCScrollBar\b/MfcScrollBar/g;
	s/\bCDataExchange\b/MfcDataExchange/g;
	s/\bCOleControlSite\b/MfcOleControlSite/g;
	s/\bCSize\b/MfcSize/g;
	s/\bCDC\b/MfcDC/g;
	s/\bCFrameWnd\b/MfcFrameWnd/g;
	s/\bCMenu\b/MfcMenu/g;
	s/\bCWnd\b/MfcWnd/g;
	s/\bCException\b/MfcException/g;
	s/\bCFile\b/MfcFile/g;
	s/\bCMemFile\b/MfcMemFile/g;
	s/\bCFileException\b/MfcFileException/g;
	s/\bCDocItem\b/MfcDocItem/g;
	s/\bCDocObjectServer\b/MfcDocObjectServer/g;
	s/\bCOleIPFrameWnd\b/MfcOleIPFrameWnd/g;
	s/\bCString\b/MfcString/g;
	s/\bCCmdUI\b/MfcCmdUI/g;
	s/\bCObject\b/MfcObject/g;
	s/\bCCmdTarget\b/MfcCmdTarget/g;
	s/\bCWnd\b/MfcWnd/g;
	s/\bCView\b/MfcView/g;
	s/\bCDocument\b/MfcDocument/g;
	s/\bCOleDocument\b/MfcOleDocument/g;
	s/\bCOleLinkingDoc\b/MfcOleLinkingDoc/g;
	s/\bCOleServerDoc\b/MfcOleServerDoc/g;
	s/\bCPrintPreviewState\b/MfcPrintPreviewState/g;
	s/\bCToolBar\b/MfcToolBar/g;
	s/\bCEdit\b/MfcEdit/g;
	s/\bCComboBox\b/MfcComboBox/g;
	s/\bCPropertySheet\b/MfcPropertySheet/g;
	s/\bCWaitCursor\b/MfcWaitCursor/g;
	s/\bPOSITION\b/MFC_POSITION/g;

	s/\bset</vc6_set</g;
	s/\bbasic_string\b/vc6_basic_string/g;
	s/\bwstring\b/vc6_wstring/g;
	s/\bauto_ptr\b/vc6_auto_ptr/g;
	s/\bvector\b/vc6_vector/g;
	s/\bpair\b/vc6_pair/g;
	s/\bset\b/vc6_set/g;
	s/\bmap\b/vc6_map/g;

	s/\bCRectVector\b/MfcRectVector/g;
	s/\bCPointVector\b/MfcPointVector/g;
	s/\bCPropertyPageVector\b/MfcPropertyPageVector/g;
	s/\bCOleClientItemPVector\b/MfcOleClientItemPVector/g;

	#----- _xZkqqHx_iOmAiNhDiCpAiLnGiOhOiClDiCoKiClNiKnGjAjE_xHqqkZx_ ------
	s/\bCmdCreate1Obj\b/Prohibited00/g;
	s/\bCmdDelete1Obj\b/Prohibited01/g;

	print SDK_FOUT_H;
}
close FC_FIN_H;
close SDK_FOUT_H;

print "OK\n";

