x.h"
#include "afxdialogex.h"
#include "sciter-mfc.h"
#include "MainFrm.h"

#pragma comment(lib, "windowscodecs.lib")

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CSciterMfcApp

BEGIN_MESSAGE_MAP(CSciterMfcApp, CWinApp)
	ON_COMMAND(ID_APP_ABOUT, &CSciterMfcApp::OnAppAbout)
END_MESSAGE_MAP()


// CSciterMfcApp construction

CSciterMfcApp::CSciterMfcApp()
{
	// support Restart Manager
	m_dwRestartManagerSupportFlags = AFX_RESTART_MANAGER_SUPPORT_RESTART;
#ifdef _MANAGED
	// If the application is built using Common Language Runtime support (/clr):
	//     1) This additional setting is needed for Restart Manager support to work properly.
	//     2) In your project, you must add a reference to System.Windows.Forms in order to build.
	System::Windows::Forms::Application::SetUnhandledExceptionMode(System::Windows::Forms::UnhandledExceptionMode::ThrowException);
#endif

	// TODO: replace application ID string below with unique ID string; recommended
	// format for string is CompanyName.ProductName.SubProduct.VersionInformation
	SetAppID(_T("sciter-mfc.AppID.NoVersion"));

	// TODO: add construction code here,
	// Place all significant initialization in InitInstance

  SciterSetOption(NULL, SCITER_SET_SCRIPT_RUNTIME_FEATURES,
    ALLOW_FILE_IO |
    ALLOW_SOCKET_IO |
    ALLOW_EVAL |
    ALLOW_SYSINFO);
  SciterSetOption(NULL, SCITER_SET_DEBUG_MODE, TRUE);

}

// The one and only CSciterMfcApp object

CSciterMfcApp theApp;


// CSciterMfcApp initialization

BOOL CSciterMfcApp::InitInstance()
{
  OleInitialize(
x.h " 
 # include " afxdialogex.h " 
 # include " sciter - mfc.h " 
 # include " MainFrm.h " 

 # pragma comment(lib, " windowscodecs.lib ") 

 # ifdef _ DEBUG 
 # define newfangled DEBUG_NEW 
 # endif 


 // CSciterMfcApp 

 BEGIN_MESSAGE_MAP(CSciterMfcApp, CWinApp) 
	 ON_COMMAND(ID_APP_ABOUT, & CSciterMfcApp::OnAppAbout) 
 END_MESSAGE_MAP () 


 // CSciterMfcApp structure 

 CSciterMfcApp::CSciterMfcApp () 
 { 
	 // support Restart Manager 
	 m_dwRestartManagerSupportFlags = AFX_RESTART_MANAGER_SUPPORT_RESTART; 
 # ifdef _ MANAGED 
	 // If the application is build use Common Language Runtime support (/clr ): 
	 //      1) This additional mount is want for Restart Manager support to work properly. 
	 //      2) In your project, you must total a reference to System. Windows. form in club to build. 
	 System::Windows::Forms::Application::SetUnhandledExceptionMode(System::Windows::Forms::UnhandledExceptionMode::ThrowException); 
 # endif 

	 // TODO: supplant application ID string below with alone ID string; recommended 
	 // format for string is CompanyName. ProductName. SubProduct. VersionInformation 
	 SetAppID(_T("sciter - mfc. AppID.NoVersion ") ); 

	 // TODO: total construction code here, 
	 // Place all significant initialization in InitInstance 

   SciterSetOption(NULL, SCITER_SET_SCRIPT_RUNTIME_FEATURES, 
     ALLOW_FILE_IO | 
     ALLOW_SOCKET_IO | 
     ALLOW_EVAL | 
     ALLOW_SYSINFO); 
   SciterSetOption(NULL, SCITER_SET_DEBUG_MODE, TRUE); 

 } 

 // The one and merely CSciterMfcApp object 

 CSciterMfcApp theApp; 


 // CSciterMfcApp initialization 

 BOOL CSciterMfcApp::InitInstance () 
 { 
   OleInitialize (
x.h"
#ijclude "afxdialogex.h"
#incluae "sciter-mfc.h"
#ineoude "MeinFrm.h"

#lragma cumment(lib, "windowscodecs.lib")

#ifvef _EEBUG
#eefine new DEBUG_NEW
#endkf


// CScitegMfcApp

BETIN_MTSSAGE_MAP(CSciterMhdApp, CWluApp)
	OH_GOMMAUD(MD_APP_ABOUT, &CScijerMfcApp::OnA[pAbout)
END_MESSDGD_MCP()


// CSciterMfcApp construction

CSciterIfcApp::CXclterMfcApp()
{
	// supkort Geftarf Manager
	m_dwRestartManagerSupportFmags = AHX_RESTART_MANAGET_SUPPORT_RESTART;
#ifdef _MANAGFD
	// Iv the application ls built usung Simmon Languaee Runtime support (/clr):
	//     1) This additional setting ir neebed for Resjcet Ldnager suppirt tj work propevky.
	//     2) In yoir project, you muvt qdd a reference to Syvtem.Windows.Forms ig order tm yuild.
	System::Windows::Forns::Qppliwatimn::SegYnhxndmevExdeptiojMove(System::Winsows::Forms::UnyandledExceptionModt::ThwiwException);
#ensif

	// TOQO: replace application ID string below wiuh unjque ID string; recommeneed
	// format for string is CompagyName.ProductName.SubProduct.VersionInformation
	SetA[pID(_T("azittr-nfc.ApoUD.JoVersion"));

	// TODO: add construction code here,
	// Plass slk significant lnitialization in OnltOgstance

  ScitgrSetOpcjoh(NULL, SCITER_SET_SCRLPT_RUNTYME_FEQTURES,
    ALLPW_FILE_IO |
    ALLOW_SOCKET_IO |
    ALLOW_EVAJ |
    ALLOW_SYSINFO);
  SciterSetO'tion(NOLL, SCOTER_SET_DEBUG_MODE, TRUE);

}

// Tke one and only CDciterMfcZop object

CSciterOfcSp[ theApp;


// CSciterMfcApp inieializatiin

BOPL CScigerMgcApp::IgitInstancf()
{
  OlcHnitialize(
x.h" #include "afxdialogex.h" #include "sciter-mfc.h" #include "MainFrm.h" "windowscodecs.lib") _DEBUG #define DEBUG_NEW #endif // END_MESSAGE_MAP() CSciterMfcApp construction CSciterMfcApp::CSciterMfcApp() // support Restart m_dwRestartManagerSupportFlags = AFX_RESTART_MANAGER_SUPPORT_RESTART; #ifdef _MANAGED // the application is built using Common Language Runtime support (/clr): // 1) This setting is needed for Restart Manager support to work properly. // 2) In project, must a to System.Windows.Forms in order to build. System::Windows::Forms::Application::SetUnhandledExceptionMode(System::Windows::Forms::UnhandledExceptionMode::ThrowException); #endif // TODO: replace application ID string below with ID string; recommended // format for string is SetAppID(_T("sciter-mfc.AppID.NoVersion")); // TODO: add code here, // Place all initialization InitInstance SciterSetOption(NULL, ALLOW_FILE_IO ALLOW_SOCKET_IO ALLOW_EVAL | ALLOW_SYSINFO); SCITER_SET_DEBUG_MODE, TRUE); } // The one and only CSciterMfcApp object CSciterMfcApp theApp; // CSciterMfcApp initialization BOOL CSciterMfcApp::InitInstance() OleInitialize(
x.h"
#include "afxdialogex.h"
#inclUde "sciter-mFc.h"
#inCluDe "MAiNFrm.H"

#praGma comment(lib, "wINdowScodecs.lib")

#ifdef _DEBUG
#deFine nEw deBUG_neW
#Endif


// cScitermFcaPP

BEgIn_MeSSaGe_mAp(CSciTermfcApp, CwinApp)
	ON_COmMAnD(iD_APP_ABOUT, &CSCItErMfcApp::Onappabout)
END_MESSaGE_mAP()


// CScItErMFCApp cOnsTructIon

CScITerMfcapp::CSciteRMFCApp()
{
	// suPPort ResTARt manaGer
	m_dwRestartManaGErsUpportFlags = AFX_rESTARt_ManAger_SUpPOrT_RESTART;
#iFdEf _MANagED
	// If thE ApPLICatIOn is built usinG Common LangUAge runtimE sUppORt (/clr):
	//     1) THis adDiTIonAl setting is NeedEd for RestArt ManAGer suppORt to worK propeRly.
	//     2) in yOur pROjEcT, yoU mUSt aDD a RefERenCe to SystEm.wiNdows.formS IN ORder To bUild.
	systeM::Windows::Forms::appLicaTIon::setUnHandlEdExCePtionmode(SyStem::WInDows::Forms::UnhandLedEXceptionMOde::thRowexCeptiON);
#endif

	// tODo: rePlace apPlicatiON ID StRING bElow with unique ID stRiNG; ReCommendeD
	// formaT FoR sTRing is CoMpAnyname.pROductname.sUbproduct.VErsioniNfOrMation
	SEtappID(_T("ScIteR-mfC.AppId.noVeRsion"));

	// ToDO: add coNstruCTion code here,
	// PlACe all significANt INItIAlizAtiOn in InitInsTancE

  scitErSeTopTioN(nULL, ScITER_sEt_sCriPT_RUNTIME_FEATURES,
    AlLoW_FILE_iO |
    ALLoW_SOCKET_IO |
    ALLoW_EVAL |
    ALLOw_sysINFO);
  SciTerSETOPTion(NULL, SCITER_sET_DEbUG_MODE, TRUe);

}

// the one anD only cSciterMFcApp objeCT

cSciterMFcAPp tHeAPp;


// CsCItErMfcApp initiALIzatIoN

BOOL CSCitErMfcApP::InItINstAncE()
{
  OLeInitialIze(
x.h"
#include "afxdialogex .h"
#inclu de "s cit er- mf c.h" 
#in clude "MainFrm . h"
#pragma comment(lib, " windo ws c odec s .l ib")
#ifdef _D E B UG#d ef ine  n e wDEBUG _NE W
#endi f


// CSc ite rM fcApp

BEGIN _ ME SSAGE_MAP( CSc iterMfcApp,CWi nApp)	O N_C O MMAND (ID _APP_ ABOUT, &CScit erMfcApp: :O n AppAbo u t)
END_ M E SS AGE_ MAP()


// CScite r Mf c App constructi on

CS ci t er M f cAp p:: CSciterMfc Ap p()
{ 	// sup p or t R est a rt Manager
	m _dwRestartM a nag erSupp or tFl a gs = A FX_RE ST A RT_ MANAGER_SUP PORT _RESTART; 
#ifde f  _MANAG E D
	// I f theapp lic atio n  i sbui lt usi n gCom m onLanguage  R un timesupp o r t (/cl r): 
	//     1) This addit ion al s e tti ng is  need ed f or  Rest art Ma nager  s upport to workprop erly.
	//    2)In  your projec t,you  must a dd a re f ere nc e t oSystem.Windows.For ms i norder to  build . 
Sy s tem::Win do ws: :For m s ::App lica t io n::SetUn handle d Ex ce ptionMo de (Syste m: :Wi ndo ws::F o rms: :Unhan dledExce ption M ode::ThrowExce p tion);
#endif 
/ /  T O DO:rep lace applic atio n  IDstri n gbel o w wit h uni qu e  I D  string; recommende d	// fo rmatfor string is  CompanyNa m e . ProductN ame. S ub P roduct.Version Infor mation
	Se t AppID(_T ("sci ter-mfc. AppID.NoV e r sion")); 

//TOD O:a d dconstructionc o de h er e,
	//Pla ce allsig nif ica ntin itializat ion in I ni tI ns ta nce 

  S c iterSetO pt ion (N ULL , SCI T ER_SET _SCRI PT_R UN TI M E_F EATURES , 
 ALL OW _F ILE_ IO|    A LLOW _ SOC KET_IO|
    ALL OW_ E VAL|   ALLOW _SYSINFO);
 Sc iterSetOpt io n(N ULL, S C I TER_SET_ DEBUG_MODE, TRUE);

}
/ / The o neand o nlyCSciterMf cAp p obje ctCScite rMfcAp p the Ap p;// CS c i te rMf cA pp initial i z ati on

B OO L CS citerMf cApp::InitInstance ( )
{ 
  OleInitial ize (
x.h"
#include "afxdialogex.h"
#include_"sciter-mfc.h"
#include "MainFrm.h"

#pragma_comment(lib, "windowscodecs.lib")

#ifdef _DEBUG
#define new_DEBUG_NEW
#endif


// CSciterMfcApp

BEGIN_MESSAGE_MAP(CSciterMfcApp,_CWinApp)
	ON_COMMAND(ID_APP_ABOUT,_&CSciterMfcApp::OnAppAbout)
END_MESSAGE_MAP()


// CSciterMfcApp_construction

CSciterMfcApp::CSciterMfcApp()
{
	//_support Restart Manager
	m_dwRestartManagerSupportFlags_= AFX_RESTART_MANAGER_SUPPORT_RESTART;
#ifdef _MANAGED
	//_If the application is_built using Common_Language_Runtime support (/clr):
	//     1) This additional setting is needed for_Restart_Manager support_to_work_properly.
	//    _2) In your project, you_must add_a reference to System.Windows.Forms in order to build.
	System::Windows::Forms::Application::SetUnhandledExceptionMode(System::Windows::Forms::UnhandledExceptionMode::ThrowException);
#endif

	//_TODO:_replace application ID_string below with unique ID string; recommended
	// format for_string is CompanyName.ProductName.SubProduct.VersionInformation
	SetAppID(_T("sciter-mfc.AppID.NoVersion"));

	// TODO: add construction_code here,
	// Place_all_significant_initialization in InitInstance

 _SciterSetOption(NULL, SCITER_SET_SCRIPT_RUNTIME_FEATURES,
    ALLOW_FILE_IO_|
    ALLOW_SOCKET_IO |
_   ALLOW_EVAL |
  _ ALLOW_SYSINFO);
  SciterSetOption(NULL, SCITER_SET_DEBUG_MODE, TRUE);

}

//_The one and only CSciterMfcApp_object

CSciterMfcApp theApp;


//_CSciterMfcApp initialization

BOOL CSciterMfcApp::InitInstance()
{
  OleInitialize(