// Excel2Dlg.h : header file
//

#pragma once
#import "C:\\Program Files\\Common Files\\Microsoft Shared\\OFFICE11\\mso.dll" 
#import "C:\\Program Files\\Microsoft Office\\OFFICE11\\EXCEL.exe" rename("RGB", "ExcelRGB") rename("CopyFile", "ExcelCopyFile") rename("DialogBox", "ExcelDialogBox") rename_namespace("MSExcel") raw_interfaces_only  
#include "CApplication.h"
#include "CRange.h"
#include "CFont0.h"
#include "afxwin.h"

// CExcel2Dlg dialog
class CExcel2Dlg : public CDialog
{
// Construction
public:
	CExcel2Dlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_EXCEL2_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()

private:
    LPDISPATCH GetIDispatch(CString AppName);
    CApplication oExcel;
public:
    CEdit Edit1;
    CStatic Label1;
    afx_msg void OnBnClickedButton1();
    afx_msg void OnBnClickedButton2();
    afx_msg void OnBnClickedButton3();
};
