?? stdafx.h
字號:
// stdafx.h : 標準系統(tǒng)包含文件的包含文件,
// 或是經(jīng)常使用但不常更改的
// 項目特定的包含文件
#pragma once
#ifndef VC_EXTRALEAN
#define VC_EXTRALEAN // 從 Windows 標頭中排除不常使用的資料
#endif
// 如果您必須使用下列所指定的平臺之前的平臺,則修改下面的定義。
// 有關(guān)不同平臺的相應(yīng)值的最新信息,請參考 MSDN。
#ifndef WINVER // 允許使用 Windows 95 和 Windows NT 4 或更高版本的特定功能。
#define WINVER 0x0400 //為 Windows98 和 Windows 2000 及更新版本改變?yōu)檫m當?shù)闹怠?#endif
#ifndef _WIN32_WINNT // 允許使用 Windows NT 4 或更高版本的特定功能。
#define _WIN32_WINNT 0x0400 //為 Windows98 和 Windows 2000 及更新版本改變?yōu)檫m當?shù)闹怠?#endif
#ifndef _WIN32_WINDOWS // 允許使用 Windows 98 或更高版本的特定功能。
#define _WIN32_WINDOWS 0x0410 //為 Windows Me 及更新版本改變?yōu)檫m當?shù)闹怠?#endif
#ifndef _WIN32_IE // 允許使用 IE 4.0 或更高版本的特定功能。
#define _WIN32_IE 0x0400 //為 IE 5.0 及更新版本改變?yōu)檫m當?shù)闹怠?#endif
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // 某些 CString 構(gòu)造函數(shù)將是顯式的
// 關(guān)閉 MFC 對某些常見但經(jīng)常被安全忽略的警告消息的隱藏
#define _AFX_ALL_WARNINGS
#include <afxwin.h> // MFC 核心和標準組件
#include <afxext.h> // MFC 擴展
#include <afxdisp.h> // MFC 自動化類
#include <afxtempl.h>
#include <afxdtctl.h> // Internet Explorer 4 公共控件的 MFC 支持
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // Windows 公共控件的 MFC 支持
#endif // _AFX_NO_AFXCMN_SUPPORT
#include <afxdlgs.h>
#include <afxwinforms.h> // MFC Windows Forms support
#include <atldbcli.h>
#include <afx.h>
#include <afxcview.h>
#using <mscorlib.dll>
//#include <afxdao.h>
#include <atlbase.h>
#include <afxoledb.h>
#include <atlplus.h>
//#include <afxdlgs.h>
#import "C:\Program Files\Common Files\System\ado\msado15.dll"\
no_namespace\
rename("EOF","adoEOF")
#include <iostream>
#import "C:\Program Files\Common Files\Microsoft Shared\OFFICE11\mso.dll" rename("RGB", "MSORGB")
#pragma warning(disable : 4192)
#import "C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB"raw_interfaces_only, \
rename("Reference", "ignorethis"), rename("VBE", "JOEVBE")
#import "D:\\Program Files\\Microsoft Office\\OFFICE11\\EXCEL.EXE" exclude("IFont", "IPicture") \
rename("RGB", "ExceRGB"), rename("DialogBox", "ExcelDialogBox"), rename("VBE", "JOEVBE"), \
rename("ReplaceText", "ExcelReplaceText"), rename("CopyFile","ExcelCopyFile"), \
rename("FindText", "ExcelFindText"), rename("NoPrompt", "ExcelNoPrompt")
using namespace Office;
using namespace VBIDE;
using namespace Excel;
using namespace std;
//#using <System.Windows.Forms.dll>
//using namespace WindowsControlLibrary2;
//#import "C:\Program Files\Common Files\System\ado\msado15.dll" no_namespace rename("EOF","adoEOF") rename("BOF","adoBOF")
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -