#include "stdafx.h"
#include "CApplication.h"
#include "CRange.h"
#include "CWorkbook.h"
#include "CWorkbooks.h"
#include "CWorksheet.h"
#include "CWorksheets.h"
#include "CChart.h"
#include "CChartObjects.h"
#include "CChartObject.h"
#include "CCharts.h"
#include "MFC_text.h"
#include "MFC_textDlg.h"
#include "DlgProxy.h"
#include "afxdialogex.h"
#include <afxinet.h>
#include <exception>
#include <string>
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
void CMFC_textDlg::OnBnClickedOk()
{
CApplication objApp;
CWorkbooks objBooks;
CWorkbook objBook;
CWorksheets objSheets;
CWorksheet objSheet;
CChart chart;
CChartObjects chartobjects;
CCharts charts;
CRange objRange, usedRange;
LPDISPATCH lpDisp;
COleVariant vResult;
COleVariant covOp