Bläddra i källkod

kayza平台工具

JeffWang 3 år sedan
förälder
incheckning
be375f620c

+ 20 - 0
FATP_FQC/FATP_FQC.sln

@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FATP_FQC", "FATP_FQC\FATP_FQC.vcproj", "{1524F550-734D-4997-A248-492AC21E4E0E}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Win32 = Debug|Win32
+		Release|Win32 = Release|Win32
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{1524F550-734D-4997-A248-492AC21E4E0E}.Debug|Win32.ActiveCfg = Debug|Win32
+		{1524F550-734D-4997-A248-492AC21E4E0E}.Debug|Win32.Build.0 = Debug|Win32
+		{1524F550-734D-4997-A248-492AC21E4E0E}.Release|Win32.ActiveCfg = Release|Win32
+		{1524F550-734D-4997-A248-492AC21E4E0E}.Release|Win32.Build.0 = Release|Win32
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+EndGlobal

+ 81 - 0
FATP_FQC/FATP_FQC/FATP_FQC.cpp

@@ -0,0 +1,81 @@
+
+// FATP_FQC.cpp : 定义应用程序的类行为。
+//
+
+#include "stdafx.h"
+#include "FATP_FQC.h"
+#include "FATP_FQCDlg.h"
+
+#ifdef _DEBUG
+#define new DEBUG_NEW
+#endif
+
+
+// CFATP_FQCApp
+
+BEGIN_MESSAGE_MAP(CFATP_FQCApp, CWinAppEx)
+	ON_COMMAND(ID_HELP, &CWinApp::OnHelp)
+END_MESSAGE_MAP()
+
+
+// CFATP_FQCApp 构造
+
+CFATP_FQCApp::CFATP_FQCApp()
+{
+	// TODO: 在此处添加构造代码,
+	// 将所有重要的初始化放置在 InitInstance 中
+}
+
+
+// 唯一的一个 CFATP_FQCApp 对象
+
+CFATP_FQCApp theApp;
+
+
+// CFATP_FQCApp 初始化
+
+BOOL CFATP_FQCApp::InitInstance()
+{
+	// 如果一个运行在 Windows XP 上的应用程序清单指定要
+	// 使用 ComCtl32.dll 版本 6 或更高版本来启用可视化方式,
+	//则需要 InitCommonControlsEx()。否则,将无法创建窗口。
+	INITCOMMONCONTROLSEX InitCtrls;
+	InitCtrls.dwSize = sizeof(InitCtrls);
+	// 将它设置为包括所有要在应用程序中使用的
+	// 公共控件类。
+	InitCtrls.dwICC = ICC_WIN95_CLASSES;
+	InitCommonControlsEx(&InitCtrls);
+
+	CWinAppEx::InitInstance();
+
+	AfxEnableControlContainer();
+
+	GLOBAL::Init();
+
+	// 标准初始化
+	// 如果未使用这些功能并希望减小
+	// 最终可执行文件的大小,则应移除下列
+	// 不需要的特定初始化例程
+	// 更改用于存储设置的注册表项
+	// TODO: 应适当修改该字符串,
+	// 例如修改为公司或组织名
+	SetRegistryKey(_T("应用程序向导生成的本地应用程序"));
+
+	CFATP_FQCDlg dlg;
+	m_pMainWnd = &dlg;
+	INT_PTR nResponse = dlg.DoModal();
+	if (nResponse == IDOK)
+	{
+		// TODO: 在此放置处理何时用
+		//  “确定”来关闭对话框的代码
+	}
+	else if (nResponse == IDCANCEL)
+	{
+		// TODO: 在此放置处理何时用
+		//  “取消”来关闭对话框的代码
+	}
+
+	// 由于对话框已关闭,所以将返回 FALSE 以便退出应用程序,
+	//  而不是启动应用程序的消息泵。
+	return FALSE;
+}

+ 32 - 0
FATP_FQC/FATP_FQC/FATP_FQC.h

@@ -0,0 +1,32 @@
+
+// FATP_FQC.h : PROJECT_NAME 应用程序的主头文件
+//
+
+#pragma once
+
+#ifndef __AFXWIN_H__
+	#error "在包含此文件之前包含“stdafx.h”以生成 PCH 文件"
+#endif
+
+#include "resource.h"		// 主符号
+
+
+// CFATP_FQCApp:
+// 有关此类的实现,请参阅 FATP_FQC.cpp
+//
+
+class CFATP_FQCApp : public CWinAppEx
+{
+public:
+	CFATP_FQCApp();
+
+// 重写
+	public:
+	virtual BOOL InitInstance();
+
+// 实现
+
+	DECLARE_MESSAGE_MAP()
+};
+
+extern CFATP_FQCApp theApp;

+ 204 - 0
FATP_FQC/FATP_FQC/FATP_FQC.rc

@@ -0,0 +1,204 @@
+// Microsoft Visual C++ generated resource script.
+//
+#include "resource.h"
+
+#define APSTUDIO_READONLY_SYMBOLS
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 2 resource.
+//
+#ifndef APSTUDIO_INVOKED
+#include "targetver.h"
+#endif
+#include "afxres.h"
+
+/////////////////////////////////////////////////////////////////////////////
+#undef APSTUDIO_READONLY_SYMBOLS
+
+/////////////////////////////////////////////////////////////////////////////
+// 中文(中华人民共和国) resources
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS)
+#ifdef _WIN32
+LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
+#pragma code_page(936)
+#endif //_WIN32
+
+#ifdef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// TEXTINCLUDE
+//
+
+1 TEXTINCLUDE 
+BEGIN
+    "resource.h\0"
+END
+
+2 TEXTINCLUDE 
+BEGIN
+    "#ifndef APSTUDIO_INVOKED\r\n"
+    "#include ""targetver.h""\r\n"
+    "#endif\r\n"
+    "#include ""afxres.h""\r\n"
+    "\0"
+END
+
+3 TEXTINCLUDE 
+BEGIN
+    "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
+    "#define _AFX_NO_OLE_RESOURCES\r\n"
+    "#define _AFX_NO_TRACKER_RESOURCES\r\n"
+    "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
+    "\r\n"
+    "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS)\r\n"
+    "LANGUAGE 4, 2\r\n"
+    "#pragma code_page(936)\r\n"
+    "#include ""res\\FATP_FQC.rc2""  // 非 Microsoft Visual C++ 编辑的资源\r\n"
+    "#include ""l.CHS\\afxres.rc""      // 标准组件\r\n"
+    "#endif\r\n"
+    "\0"
+END
+
+#endif    // APSTUDIO_INVOKED
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Icon
+//
+
+// Icon with lowest ID value placed first to ensure application icon
+// remains consistent on all systems.
+IDR_MAINFRAME           ICON                    "res\\FATP_FQC.ico"
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Dialog
+//
+
+IDD_ABOUTBOX DIALOGEX 0, 0, 170, 62
+STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
+CAPTION "关于 FATP_FQC"
+FONT 9, "MS Shell Dlg", 0, 0, 0x1
+BEGIN
+    ICON            IDR_MAINFRAME,IDC_STATIC,14,14,21,20
+    LTEXT           "FATP_FQC,1.0 版",IDC_STATIC,42,14,114,8,SS_NOPREFIX
+    LTEXT           "Copyright (C) 2022",IDC_STATIC,42,26,114,8
+    DEFPUSHBUTTON   "确定",IDOK,113,41,50,14,WS_GROUP
+END
+
+IDD_FATP_FQC_DIALOG DIALOGEX 0, 0, 319, 215
+STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_MINIMIZEBOX | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
+EXSTYLE WS_EX_APPWINDOW
+CAPTION "FATP_FQC"
+FONT 9, "MS Shell Dlg", 0, 0, 0x1
+BEGIN
+    PUSHBUTTON      "Get Log",BTN_GET_LOG,17,19,50,14
+    PUSHBUTTON      "Shop Init",BTN_SHOP_INIT,74,19,50,14
+    CONTROL         "",IDC_LIST1,"SysListView32",LVS_REPORT | LVS_ALIGNLEFT | WS_BORDER | WS_TABSTOP,7,43,305,165
+    GROUPBOX        "Operation",IDC_STATIC,7,7,305,31
+END
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Version
+//
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION 1,0,0,1
+ PRODUCTVERSION 1,0,0,1
+ FILEFLAGSMASK 0x3fL
+#ifdef _DEBUG
+ FILEFLAGS 0x1L
+#else
+ FILEFLAGS 0x0L
+#endif
+ FILEOS 0x4L
+ FILETYPE 0x1L
+ FILESUBTYPE 0x0L
+BEGIN
+    BLOCK "StringFileInfo"
+    BEGIN
+        BLOCK "080403a8"
+        BEGIN
+            VALUE "CompanyName", "TODO: <公司名>"
+            VALUE "FileDescription", "TODO: <文件说明>"
+            VALUE "FileVersion", "1.0.0.1"
+            VALUE "InternalName", "FATP_FQC.exe"
+            VALUE "LegalCopyright", "TODO: (C) <公司名>。保留所有权利。"
+            VALUE "OriginalFilename", "FATP_FQC.exe"
+            VALUE "ProductName", "TODO: <产品名>"
+            VALUE "ProductVersion", "1.0.0.1"
+        END
+    END
+    BLOCK "VarFileInfo"
+    BEGIN
+        VALUE "Translation", 0x804, 936
+    END
+END
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// DESIGNINFO
+//
+
+#ifdef APSTUDIO_INVOKED
+GUIDELINES DESIGNINFO 
+BEGIN
+    IDD_ABOUTBOX, DIALOG
+    BEGIN
+        LEFTMARGIN, 7
+        RIGHTMARGIN, 163
+        TOPMARGIN, 7
+        BOTTOMMARGIN, 55
+    END
+
+    IDD_FATP_FQC_DIALOG, DIALOG
+    BEGIN
+        LEFTMARGIN, 7
+        RIGHTMARGIN, 312
+        TOPMARGIN, 7
+        BOTTOMMARGIN, 208
+    END
+END
+#endif    // APSTUDIO_INVOKED
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// String Table
+//
+
+STRINGTABLE 
+BEGIN
+    IDS_ABOUTBOX            "关于 FATP_FQC(&A)..."
+END
+
+#endif    // 中文(中华人民共和国) resources
+/////////////////////////////////////////////////////////////////////////////
+
+
+
+#ifndef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 3 resource.
+//
+#define _AFX_NO_SPLITTER_RESOURCES
+#define _AFX_NO_OLE_RESOURCES
+#define _AFX_NO_TRACKER_RESOURCES
+#define _AFX_NO_PROPERTY_RESOURCES
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS)
+LANGUAGE 4, 2
+#pragma code_page(936)
+#include "res\FATP_FQC.rc2"  // 非 Microsoft Visual C++ 编辑的资源
+#include "l.CHS\afxres.rc"      // 标准组件
+#endif
+
+/////////////////////////////////////////////////////////////////////////////
+#endif    // not APSTUDIO_INVOKED
+

+ 280 - 0
FATP_FQC/FATP_FQC/FATP_FQC.vcproj

@@ -0,0 +1,280 @@
+<?xml version="1.0" encoding="gb2312"?>
+<VisualStudioProject
+	ProjectType="Visual C++"
+	Version="9.00"
+	Name="FATP_FQC"
+	ProjectGUID="{1524F550-734D-4997-A248-492AC21E4E0E}"
+	RootNamespace="FATP_FQC"
+	Keyword="MFCProj"
+	TargetFrameworkVersion="196613"
+	>
+	<Platforms>
+		<Platform
+			Name="Win32"
+		/>
+	</Platforms>
+	<ToolFiles>
+	</ToolFiles>
+	<Configurations>
+		<Configuration
+			Name="Debug|Win32"
+			OutputDirectory="..\..\..\bin\$(SolutionName)"
+			IntermediateDirectory="$(OutDir)\$(ProjectName)\$(ConfigurationName)"
+			ConfigurationType="1"
+			UseOfMFC="2"
+			CharacterSet="2"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+				PreprocessorDefinitions="_DEBUG"
+				MkTypLibCompatible="false"
+				ValidateParameters="true"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="0"
+				PreprocessorDefinitions="WIN32;_WINDOWS;_DEBUG"
+				MinimalRebuild="true"
+				BasicRuntimeChecks="3"
+				RuntimeLibrary="3"
+				UsePrecompiledHeader="2"
+				WarningLevel="3"
+				DebugInformationFormat="4"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+				PreprocessorDefinitions="_DEBUG"
+				Culture="2052"
+				AdditionalIncludeDirectories="$(IntDir)"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				LinkIncremental="2"
+				GenerateDebugInformation="true"
+				SubSystem="2"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+		<Configuration
+			Name="Release|Win32"
+			OutputDirectory="..\..\..\bin\$(SolutionName)"
+			IntermediateDirectory="$(OutDir)\$(ProjectName)\$(ConfigurationName)"
+			ConfigurationType="1"
+			UseOfMFC="2"
+			CharacterSet="1"
+			WholeProgramOptimization="1"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+				PreprocessorDefinitions="NDEBUG"
+				MkTypLibCompatible="false"
+				ValidateParameters="true"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="2"
+				EnableIntrinsicFunctions="true"
+				PreprocessorDefinitions="WIN32;_WINDOWS;NDEBUG"
+				MinimalRebuild="false"
+				RuntimeLibrary="2"
+				EnableFunctionLevelLinking="true"
+				UsePrecompiledHeader="2"
+				WarningLevel="3"
+				DebugInformationFormat="3"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+				PreprocessorDefinitions="NDEBUG"
+				Culture="2052"
+				AdditionalIncludeDirectories="$(IntDir)"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				LinkIncremental="1"
+				GenerateDebugInformation="true"
+				SubSystem="2"
+				OptimizeReferences="2"
+				EnableCOMDATFolding="2"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+	</Configurations>
+	<References>
+	</References>
+	<Files>
+		<Filter
+			Name="Ô´Îļþ"
+			Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
+			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+			>
+			<File
+				RelativePath=".\FATP_FQC.cpp"
+				>
+			</File>
+			<File
+				RelativePath=".\FATP_FQCDlg.cpp"
+				>
+			</File>
+			<File
+				RelativePath=".\Global.cpp"
+				>
+			</File>
+			<File
+				RelativePath=".\stdafx.cpp"
+				>
+				<FileConfiguration
+					Name="Debug|Win32"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+						UsePrecompiledHeader="1"
+					/>
+				</FileConfiguration>
+				<FileConfiguration
+					Name="Release|Win32"
+					>
+					<Tool
+						Name="VCCLCompilerTool"
+						UsePrecompiledHeader="1"
+					/>
+				</FileConfiguration>
+			</File>
+		</Filter>
+		<Filter
+			Name="Í·Îļþ"
+			Filter="h;hpp;hxx;hm;inl;inc;xsd"
+			UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+			>
+			<File
+				RelativePath=".\FATP_FQC.h"
+				>
+			</File>
+			<File
+				RelativePath=".\FATP_FQCDlg.h"
+				>
+			</File>
+			<File
+				RelativePath=".\Global.h"
+				>
+			</File>
+			<File
+				RelativePath=".\Resource.h"
+				>
+			</File>
+			<File
+				RelativePath=".\stdafx.h"
+				>
+			</File>
+			<File
+				RelativePath=".\targetver.h"
+				>
+			</File>
+		</Filter>
+		<Filter
+			Name="×ÊÔ´Îļþ"
+			Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
+			UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
+			>
+			<File
+				RelativePath=".\res\FATP_FQC.ico"
+				>
+			</File>
+			<File
+				RelativePath=".\FATP_FQC.rc"
+				>
+			</File>
+			<File
+				RelativePath=".\res\FATP_FQC.rc2"
+				>
+			</File>
+		</Filter>
+		<File
+			RelativePath=".\ReadMe.txt"
+			>
+		</File>
+	</Files>
+	<Globals>
+		<Global
+			Name="RESOURCE_FILE"
+			Value="FATP_FQC.rc"
+		/>
+	</Globals>
+</VisualStudioProject>

+ 260 - 0
FATP_FQC/FATP_FQC/FATP_FQCDlg.cpp

@@ -0,0 +1,260 @@
+
+// FATP_FQCDlg.cpp : 实现文件
+//
+
+#include "stdafx.h"
+#include "FATP_FQC.h"
+#include "FATP_FQCDlg.h"
+
+#ifdef _DEBUG
+#define new DEBUG_NEW
+#endif
+
+
+// 用于应用程序“关于”菜单项的 CAboutDlg 对话框
+
+class CAboutDlg : public CDialog
+{
+public:
+	CAboutDlg();
+
+// 对话框数据
+	enum { IDD = IDD_ABOUTBOX };
+
+	protected:
+	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持
+
+// 实现
+protected:
+	DECLARE_MESSAGE_MAP()
+};
+
+CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
+{
+}
+
+void CAboutDlg::DoDataExchange(CDataExchange* pDX)
+{
+	CDialog::DoDataExchange(pDX);
+}
+
+BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
+END_MESSAGE_MAP()
+
+
+// CFATP_FQCDlg 对话框
+
+
+
+
+CFATP_FQCDlg::CFATP_FQCDlg(CWnd* pParent /*=NULL*/)
+	: CDialog(CFATP_FQCDlg::IDD, pParent)
+{
+	m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
+}
+
+void CFATP_FQCDlg::DoDataExchange(CDataExchange* pDX)
+{
+	CDialog::DoDataExchange(pDX);
+	DDX_Control(pDX, IDC_LIST1, m_list);
+}
+
+BEGIN_MESSAGE_MAP(CFATP_FQCDlg, CDialog)
+	ON_WM_SYSCOMMAND()
+	ON_WM_PAINT()
+	ON_WM_QUERYDRAGICON()
+	//}}AFX_MSG_MAP
+	ON_BN_CLICKED(BTN_GET_LOG, &CFATP_FQCDlg::OnBnClickedGetLog)
+	ON_BN_CLICKED(BTN_SHOP_INIT, &CFATP_FQCDlg::OnBnClickedShopInit)
+END_MESSAGE_MAP()
+
+
+// CFATP_FQCDlg 消息处理程序
+
+BOOL CFATP_FQCDlg::OnInitDialog()
+{
+	CDialog::OnInitDialog();
+
+	// 将“关于...”菜单项添加到系统菜单中。
+
+	// IDM_ABOUTBOX 必须在系统命令范围内。
+	ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
+	ASSERT(IDM_ABOUTBOX < 0xF000);
+
+	CMenu* pSysMenu = GetSystemMenu(FALSE);
+	if (pSysMenu != NULL)
+	{
+		BOOL bNameValid;
+		CString strAboutMenu;
+		bNameValid = strAboutMenu.LoadString(IDS_ABOUTBOX);
+		ASSERT(bNameValid);
+		if (!strAboutMenu.IsEmpty())
+		{
+			pSysMenu->AppendMenu(MF_SEPARATOR);
+			pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
+		}
+	}
+
+	// 设置此对话框的图标。当应用程序主窗口不是对话框时,框架将自动
+	//  执行此操作
+	SetIcon(m_hIcon, TRUE);			// 设置大图标
+	SetIcon(m_hIcon, FALSE);		// 设置小图标
+
+	// TODO: 在此添加额外的初始化代码
+#ifdef _DEBUG
+	CheckLog(_T("F:\\cfg\\bin\\FATP_FQC\\G9V287002073047H"));
+#endif
+
+	return TRUE;  // 除非将焦点设置到控件,否则返回 TRUE
+}
+
+void CFATP_FQCDlg::OnSysCommand(UINT nID, LPARAM lParam)
+{
+	if ((nID & 0xFFF0) == IDM_ABOUTBOX)
+	{
+		CAboutDlg dlgAbout;
+		dlgAbout.DoModal();
+	}
+	else
+	{
+		CDialog::OnSysCommand(nID, lParam);
+	}
+}
+
+// 如果向对话框添加最小化按钮,则需要下面的代码
+//  来绘制该图标。对于使用文档/视图模型的 MFC 应用程序,
+//  这将由框架自动完成。
+
+void CFATP_FQCDlg::OnPaint()
+{
+	if (IsIconic())
+	{
+		CPaintDC dc(this); // 用于绘制的设备上下文
+
+		SendMessage(WM_ICONERASEBKGND, reinterpret_cast<WPARAM>(dc.GetSafeHdc()), 0);
+
+		// 使图标在工作区矩形中居中
+		int cxIcon = GetSystemMetrics(SM_CXICON);
+		int cyIcon = GetSystemMetrics(SM_CYICON);
+		CRect rect;
+		GetClientRect(&rect);
+		int x = (rect.Width() - cxIcon + 1) / 2;
+		int y = (rect.Height() - cyIcon + 1) / 2;
+
+		// 绘制图标
+		dc.DrawIcon(x, y, m_hIcon);
+	}
+	else
+	{
+		CDialog::OnPaint();
+	}
+}
+
+//当用户拖动最小化窗口时系统调用此函数取得光标
+//显示。
+HCURSOR CFATP_FQCDlg::OnQueryDragIcon()
+{
+	return static_cast<HCURSOR>(m_hIcon);
+}
+
+BOOL CFATP_FQCDlg::CheckLog(CString strLogDir)
+{
+	if ( PathFileExists(strLogDir) )
+	{
+		CString strLogFile;
+		for ( int i = 1; i < 6; i++ )
+		{
+			strLogFile.Format(_T("%s\\radar_data_fan_dmesg_%d.log"), strLogDir, i);
+			if ( !PathFileExists(strLogFile) )
+				return FALSE;
+			
+			CStringList listStr;
+			CString strData = GLOBAL::ReadFileContent(strLogFile);
+			GLOBAL::GetStringList(strData, _T("\n"), listStr);
+			GLOBAL::CheckListData(listStr);
+		}
+	}
+
+	return FALSE;
+}
+
+void CFATP_FQCDlg::OnBnClickedGetLog()
+{
+	// TODO: 在此添加控件通知处理程序代码
+	CString strStdOutput;
+	TCHAR szApplicationName[MAX_PATH] = {0};
+#ifdef _DEBUG
+	_stprintf_s(szApplicationName, _T("%s%s"), GLOBAL::g_szModulePath, _T("test.bat"));
+#else
+	_stprintf_s(szApplicationName, _T("%s%s"), GLOBAL::g_szModulePath, _T("radar_data_collection_V03.bat"));
+#endif
+	if ( GLOBAL::StartProcess(szApplicationName, NULL, strStdOutput) )
+	{
+		// 获取DSN;
+		CStringList listDSN;
+		GLOBAL::GetStringList(strStdOutput, _T("\r\n"), listDSN);
+		CString strDSN, strTemp;
+		CString strFindStr = _T("folder is ");
+		if ( GLOBAL::FindString(listDSN, strFindStr, strDSN) )
+		{
+			m_strDSN = strDSN.Mid(strDSN.Find(strFindStr) + strFindStr.GetLength());
+			m_strDSN.Trim();
+
+			strFindStr.Format(_T("[%s][PASS]radar fan data collection"), strDSN);
+			if ( GLOBAL::FindString(listDSN, strFindStr, strTemp) )
+			{
+				CString strLogDir;
+				strLogDir.Format(_T("%s%s"),GLOBAL::g_szModulePath, strDSN);
+				if ( CheckLog(strLogDir) )
+				{
+
+
+				}
+				else
+				{
+					MessageBox(_T("日志统计失败"), _T("提示"), MB_ICONERROR);
+				}
+			}
+			else
+			{
+				MessageBox(_T("未找到关键字<[PASS]radar fan data collection]>,执行结果失败"), _T("提示"), MB_ICONERROR);
+			}
+		}
+		else
+		{
+			MessageBox(_T("未找到关键字<folder is>"), _T("提示"), MB_ICONERROR);
+		}
+	}
+	else
+	{
+		MessageBox(_T("运行BAT失败"), _T("提示"), MB_ICONERROR);
+	}
+}
+
+void CFATP_FQCDlg::OnBnClickedShopInit()
+{
+	// TODO: 在此添加控件通知处理程序代码
+	CString strStdOutput;
+	TCHAR szApplicationName[MAX_PATH] = {0};
+	_stprintf_s(szApplicationName, _T("%s%s"), GLOBAL::g_szModulePath, _T("radar_tv_set_shop_init_V03.bat"));
+	if ( GLOBAL::StartProcess(szApplicationName, NULL, strStdOutput) )
+	{
+		// 获取DSN;
+		CStringList listStr;
+		GLOBAL::GetStringList(strStdOutput, _T("\r\n"), listStr);
+		CString strResult;
+		CString strFindStr = _T("[PASS]TV shop init finished ...[PASS]");
+		if ( GLOBAL::FindString(listStr, strFindStr, strResult) )
+		{
+			MessageBox(_T("TV shop init finished ...[PASS]"), _T("提示"), MB_OK);
+		}
+		else
+		{
+			MessageBox(_T("未找到关键字<[PASS]TV shop init finished ...[PASS]>"), _T("提示"), MB_ICONERROR);
+		}
+	}
+	else
+	{
+		MessageBox(_T("运行BAT失败"), _T("提示"), MB_ICONERROR);
+	}
+}

+ 39 - 0
FATP_FQC/FATP_FQC/FATP_FQCDlg.h

@@ -0,0 +1,39 @@
+
+// FATP_FQCDlg.h : 头文件
+//
+
+#pragma once
+#include "afxcmn.h"
+
+
+// CFATP_FQCDlg 对话框
+class CFATP_FQCDlg : public CDialog
+{
+// 构造
+public:
+	CFATP_FQCDlg(CWnd* pParent = NULL);	// 标准构造函数
+
+// 对话框数据
+	enum { IDD = IDD_FATP_FQC_DIALOG };
+
+	protected:
+	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV 支持
+
+
+// 实现
+protected:
+	HICON m_hIcon;
+
+	// 生成的消息映射函数
+	virtual BOOL OnInitDialog();
+	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
+	afx_msg void OnPaint();
+	afx_msg HCURSOR OnQueryDragIcon();
+	DECLARE_MESSAGE_MAP()
+public:
+	afx_msg void OnBnClickedGetLog();
+	afx_msg void OnBnClickedShopInit();
+	CListCtrl m_list;
+	CString m_strDSN;
+	BOOL CheckLog(CString strLogDir);
+};

+ 171 - 0
FATP_FQC/FATP_FQC/Global.cpp

@@ -0,0 +1,171 @@
+#include "StdAfx.h"
+#include "Global.h"
+
+namespace GLOBAL
+{
+	TCHAR g_szModulePath[MAX_PATH] = _T("");			// 软件目录;
+	TCHAR g_szModuleFileName[MAX_PATH] = _T("");		// 软件名称;
+
+	void Init()
+	{
+		TCHAR szDrive[_MAX_DRIVE] = { 0 };
+		TCHAR szDir[_MAX_DIR] = { 0 };
+		TCHAR szFna[_MAX_DIR] = { 0 };
+		TCHAR szExt[_MAX_DIR] = { 0 };
+		::GetModuleFileName(NULL, g_szModulePath, sizeof(g_szModulePath) / sizeof(TCHAR));
+		_stprintf_s(g_szModuleFileName, _T("%s"), g_szModulePath);
+
+		_tsplitpath_s(g_szModulePath, szDrive, szDir, szFna, szExt);
+		_tcscpy_s(g_szModulePath, szDrive);
+		_tcscat_s(g_szModulePath, szDir);
+	}
+
+	// 调用批处理,返回的是多字节字符;
+	BOOL StartProcess(LPCTSTR lpApplicationName, LPCTSTR lpCommandLine, CString &strStdOutput)
+	{	
+		HANDLE hRead,hWrite;  
+		SECURITY_ATTRIBUTES sa;  		
+		sa.nLength = sizeof(SECURITY_ATTRIBUTES);  
+		sa.lpSecurityDescriptor = NULL; //使用系统默认的安全描述符  
+		sa.bInheritHandle = TRUE; //创建的进程继承句柄
+
+		if (!CreatePipe(&hRead,&hWrite,&sa,0)) //创建匿名管道  
+		{  
+			MessageBox(NULL, _T("CreatePipe Failed!"), _T("提示"), MB_OK | MB_ICONWARNING);  
+			return FALSE;  
+		}  
+
+		STARTUPINFO si;  
+		PROCESS_INFORMATION pi;  
+		ZeroMemory(&si,sizeof(STARTUPINFO)); 
+		si.cb = sizeof(STARTUPINFO);  
+		GetStartupInfo(&si);  
+		//si.hStdError = hWrite;  
+		si.hStdOutput = hWrite; //新创建进程的标准输出连在写管道一端  
+		si.wShowWindow = SW_HIDE; //隐藏窗口  
+		si.dwFlags = STARTF_USESHOWWINDOW | STARTF_USESTDHANDLES;  
+
+		TCHAR szCommandLine[MAX_PATH] = {0};
+		if ( lpCommandLine ) _stprintf_s(szCommandLine, _T("%s"), lpCommandLine);
+		if (!CreateProcess(lpApplicationName, lpCommandLine ? szCommandLine : NULL, NULL, NULL, TRUE, NULL, NULL, NULL, &si, &pi)) //创建子进程  
+		{  
+			MessageBox(NULL, _T("CreateProcess Failed!"), _T("提示"), MB_OK | MB_ICONWARNING);  
+			return FALSE;  
+		}  
+
+		CloseHandle(hWrite); //关闭管道句柄  
+
+		TCHAR szBuffer[4096] = {0};  
+		DWORD bytesRead;  
+		while (true)
+		{  
+			if (ReadFile(hRead,szBuffer,4096*sizeof(TCHAR),&bytesRead,NULL) == NULL) //读取管道  
+				break;  
+			strStdOutput += szBuffer;  
+			Sleep(100);  
+		}  
+		CloseHandle(hRead); 
+
+		return TRUE;
+	}
+
+	CString ReadFileContent(LPCTSTR lpFileName)
+	{
+		CString strData = _T("");
+		if ( !lpFileName || !PathFileExists(lpFileName) )
+			return strData;
+
+		CFile file;
+		CFileException exp;
+		std::string strRead;
+		if ( file.Open(lpFileName, CFile::modeRead, &exp) )
+		{
+			DWORD dwRead = 0;
+			DWORD dwCount = 0;
+			
+			TCHAR szRead[MAX_PATH] = {0};
+			DWORD dwLen = file.GetLength();
+			while ( dwCount = file.Read(szRead, MAX_PATH) )
+			{
+				strRead.append(szRead, dwCount);
+			}
+
+			file.Close();
+		}
+
+		return CString(strRead.c_str());
+	}
+
+	void GetStringList(CString strData, CString strSplit, CStringList &ListStr)
+	{
+		int nPos = -1;
+		CString strTemp;
+		ListStr.RemoveAll();
+		do 
+		{
+			nPos = strData.Find(strSplit);
+			if ( nPos != -1 )
+			{
+				strTemp = strData.Mid(0, nPos);
+				ListStr.AddTail(strTemp);
+				strData = strData.Mid(nPos+strSplit.GetLength());
+			}
+		} while (nPos != -1);
+	}
+
+	BOOL FindString(CStringList &ListStr, CString strFind, CString &strResult)
+	{
+		CString strTemp;
+		POSITION pos = ListStr.GetHeadPosition();
+		while (pos != NULL)
+		{
+			strTemp = ListStr.GetNext(pos);
+			if ( strTemp.Find(strFind) != -1 )
+			{
+				strResult = strTemp;
+				return TRUE;
+			}
+		}
+
+		return FALSE;
+	}
+
+	BOOL CheckListData(CStringList &listStr)
+	{
+		INT nCount = listStr.GetSize();
+		if ( nCount == 0 ) return FALSE;
+
+		CString strLevel = _T(""), strDist = _T("");
+		POSITION pos = listStr.GetHeadPosition();
+		while (pos != NULL)
+		{
+			strDist = listStr.GetNext(pos);
+			if ( pos == NULL ) 
+				return FALSE;
+			strLevel = listStr.GetNext(pos);
+
+			TCHAR szDist[5][5] = {0};
+			TCHAR szLevel[5][5] = {0};
+
+			//TCHAR szData[1024] = {0};
+			//if (_stscanf_s(strDist.GetString(), _T("%[^=]"), szData, 1024))
+			if (_stscanf_s(strDist.GetString(), _T("%*[^=]=%[^,],%[^,],%[^,],%[^,],%s"), szDist[0], 5, szDist[1], 5, szDist[2], 5, szDist[3], 5, szDist[4], 5) == 5 )
+			{
+				if (_stscanf_s(strLevel.GetString(), _T("%*[^=]=%[^,],%[^,],%[^,],%[^,],%s"), szDist[0], 5, szDist[1], 5, szDist[2], 5, szDist[3], 5, szDist[4], 5) == 5 )
+				{
+
+				}
+			}
+			//if ( _stscanf_s(buf, "%[^;];%[^;];%[^;];%[^;];%[^;];%[^;];%[^;];%[^;]", name, MAX_PATH, option, MAX_PATH, head, MAX_PATH, code, MAX_PATH, param, MAX_PATH, multicode, MAX_PATH, read_wait_time, MAX_PATH, cmd_wait_time, MAX_PATH) == 8) // 等价下面;
+			//if (_stscanf_s(strDist.GetString(), "%[^=]=%[^,],%[^,],%[^,],%[^,],%[^,],%s", szDist[0], 5, szDist[1], 5, szDist[2], 5, szDist[3], 5, szDist[4], 5) == 6)
+			{
+
+			}
+
+			int aa = 0;
+		}
+
+
+		return FALSE;
+	}
+};

+ 15 - 0
FATP_FQC/FATP_FQC/Global.h

@@ -0,0 +1,15 @@
+#pragma once
+
+namespace GLOBAL
+{
+	// 全局路径;
+	extern TCHAR g_szModulePath[MAX_PATH];			// 软件目录;
+	extern TCHAR g_szModuleFileName[MAX_PATH];		// 软件名称;
+
+	void Init();
+	BOOL StartProcess(LPCTSTR lpApplicationName, LPCTSTR lpCommandLine, CString &strStdOutput);
+	CString ReadFileContent(LPCTSTR lpFileName);
+	void GetStringList(CString strData, CString strSplit, CStringList &ListStr);
+	BOOL FindString(CStringList &ListStr, CString strFind, CString &strResult);
+	BOOL CheckListData(CStringList &listStr);
+};

+ 69 - 0
FATP_FQC/FATP_FQC/ReadMe.txt

@@ -0,0 +1,69 @@
+================================================================================
+    MICROSOFT 基础类库: FATP_FQC 项目概述
+===============================================================================
+
+应用程序向导已为您创建此 FATP_FQC 应用程序。此应用程序不仅演示使用 Microsoft 基础类的基本知识,而且可作为编写应用程序的起点。
+
+此文件包含组成 FATP_FQC 应用程序的各个文件的内容摘要。
+
+FATP_FQC.vcproj
+    这是使用应用程序向导生成的 VC++ 项目的主项目文件。
+    它包含有关生成文件的 Visual C++ 版本的信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。
+
+FATP_FQC.h
+    这是应用程序的主要头文件。它包括其他项目特定的头文件(包括 Resource.h),并声明 CFATP_FQCApp 应用程序类。
+
+FATP_FQC.cpp
+    这是包含应用程序类 CFATP_FQCApp 的主要应用程序源文件。
+
+FATP_FQC.rc
+    这是程序使用的所有 Microsoft Windows 资源的列表。它包括 RES 子目录中存储的图标、位图和光标。此文件可以直接在 Microsoft Visual C++ 中进行编辑。项目资源位于 2052 中。
+
+res\FATP_FQC.ico
+    这是用作应用程序图标的图标文件。此图标包括在主要资源文件 FATP_FQC.rc 中。
+
+res\FATP_FQC.rc2
+    此文件包含不是由 Microsoft Visual C++ 编辑的资源。您应该将不可由资源编辑器编辑的所有资源放在此文件中。
+
+
+/////////////////////////////////////////////////////////////////////////////
+
+应用程序向导创建一个对话框类:
+
+FATP_FQCDlg.h,FATP_FQCDlg.cpp - 对话框
+    这些文件包含 CFATP_FQCDlg 类。该类定义应用程序主对话框的行为。该对话框的模板位于 FATP_FQC.rc 中,该文件可以在 Microsoft Visual C++ 中进行编辑。
+
+
+/////////////////////////////////////////////////////////////////////////////
+
+其他功能:
+
+ActiveX 控件
+    应用程序包括对使用 ActiveX 控件的支持。
+
+打印及打印预览支持
+    应用程序向导已通过从 MFC 库调用 CView 类中的成员函数,生成了用于处理打印、打印设置和打印预览命令的代码。
+
+/////////////////////////////////////////////////////////////////////////////
+
+其他标准文件:
+
+StdAfx.h, StdAfx.cpp
+    这些文件用于生成名为 FATP_FQC.pch 的预编译头(PCH)文件和名为 StdAfx.obj 的预编译类型文件。
+
+Resource.h
+    这是标准头文件,它定义新资源 ID。
+    Microsoft Visual C++ 将读取并更新此文件。
+
+FATP_FQC.manifest
+	Windows XP 使用应用程序清单文件描述应用程序	对特定版本并行程序集的依赖性。加载程序使用此	信息从程序集缓存加载相应程序集或	从应用程序加载私有信息。应用程序清单可能作为	与应用程序可执行文件安装在同一文件夹中的外部 .manifest 文件包括在内以便重新发布,	也可能以资源的形式包括在该可执行文件中。
+/////////////////////////////////////////////////////////////////////////////
+
+其他注释:
+
+应用程序向导使用“TODO:”指示应添加或自定义的源代码部分。
+
+如果应用程序在共享 DLL 中使用 MFC,则将需要重新发布 MFC DLL。如果应用程序所用与操作系统的区域设置不同,则也将必须重新发布对应的本地化资源 MFC90XXX.DLL。
+有关这两个主题的详细信息,请参阅 MSDN 文档中有关重新发布 Visual C++ 应用程序的部分。
+
+/////////////////////////////////////////////////////////////////////////////

BIN
FATP_FQC/FATP_FQC/res/FATP_FQC.ico


+ 13 - 0
FATP_FQC/FATP_FQC/res/FATP_FQC.rc2

@@ -0,0 +1,13 @@
+//
+// FATP_FQC.RC2 - Microsoft Visual C++ 不会直接编辑的资源
+//
+
+#ifdef APSTUDIO_INVOKED
+#error 此文件不能用 Microsoft Visual C++ 编辑
+#endif //APSTUDIO_INVOKED
+
+
+/////////////////////////////////////////////////////////////////////////////
+// 在此处添加手动编辑的资源...
+
+/////////////////////////////////////////////////////////////////////////////

+ 25 - 0
FATP_FQC/FATP_FQC/resource.h

@@ -0,0 +1,25 @@
+//{{NO_DEPENDENCIES}}
+// Microsoft Visual C++ generated include file.
+// Used by FATP_FQC.rc
+//
+#define IDM_ABOUTBOX                    0x0010
+#define IDD_ABOUTBOX                    100
+#define IDS_ABOUTBOX                    101
+#define IDD_FATP_FQC_DIALOG             102
+#define IDR_MAINFRAME                   128
+#define BTN_GET_LOG                     1000
+#define BTN_SHOP_INIT                   1001
+#define IDC_LIST1                       1002
+#define IDC_RICHEDIT21                  1003
+#define IDC_EDIT1                       1004
+
+// Next default values for new objects
+// 
+#ifdef APSTUDIO_INVOKED
+#ifndef APSTUDIO_READONLY_SYMBOLS
+#define _APS_NEXT_RESOURCE_VALUE        129
+#define _APS_NEXT_COMMAND_VALUE         32771
+#define _APS_NEXT_CONTROL_VALUE         1005
+#define _APS_NEXT_SYMED_VALUE           101
+#endif
+#endif

+ 8 - 0
FATP_FQC/FATP_FQC/stdafx.cpp

@@ -0,0 +1,8 @@
+
+// stdafx.cpp : 只包括标准包含文件的源文件
+// FATP_FQC.pch 将作为预编译头
+// stdafx.obj 将包含预编译类型信息
+
+#include "stdafx.h"
+
+

+ 60 - 0
FATP_FQC/FATP_FQC/stdafx.h

@@ -0,0 +1,60 @@
+
+// stdafx.h : 标准系统包含文件的包含文件,
+// 或是经常使用但不常更改的
+// 特定于项目的包含文件
+
+#pragma once
+
+#ifndef _SECURE_ATL
+#define _SECURE_ATL 1
+#endif
+
+#ifndef VC_EXTRALEAN
+#define VC_EXTRALEAN            // 从 Windows 头中排除极少使用的资料
+#endif
+
+#include "targetver.h"
+
+#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS      // 某些 CString 构造函数将是显式的
+
+// 关闭 MFC 对某些常见但经常可放心忽略的警告消息的隐藏
+#define _AFX_ALL_WARNINGS
+
+#include <afxwin.h>         // MFC 核心组件和标准组件
+#include <afxext.h>         // MFC 扩展
+
+
+#include <afxdisp.h>        // MFC 自动化类
+
+
+
+#ifndef _AFX_NO_OLE_SUPPORT
+#include <afxdtctl.h>           // MFC 对 Internet Explorer 4 公共控件的支持
+#endif
+#ifndef _AFX_NO_AFXCMN_SUPPORT
+#include <afxcmn.h>             // MFC 对 Windows 公共控件的支持
+#endif // _AFX_NO_AFXCMN_SUPPORT
+
+#include <afxcontrolbars.h>     // 功能区和控件条的 MFC 支持
+#include <string>
+#include "Global.h"
+
+
+
+
+
+
+
+#ifdef _UNICODE
+#if defined _M_IX86
+#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
+#elif defined _M_IA64
+#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")
+#elif defined _M_X64
+#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
+#else
+#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
+#endif
+#endif
+
+

+ 26 - 0
FATP_FQC/FATP_FQC/targetver.h

@@ -0,0 +1,26 @@
+
+#pragma once
+
+// 以下宏定义要求的最低平台。要求的最低平台
+// 是具有运行应用程序所需功能的 Windows、Internet Explorer 等产品的
+// 最早版本。通过在指定版本及更低版本的平台上启用所有可用的功能,宏可以
+// 正常工作。
+
+// 如果必须要针对低于以下指定版本的平台,请修改下列定义。
+// 有关不同平台对应值的最新信息,请参考 MSDN。
+#ifndef WINVER                          // 指定要求的最低平台是 Windows Vista。
+#define WINVER 0x0600           // 将此值更改为相应的值,以适用于 Windows 的其他版本。
+#endif
+
+#ifndef _WIN32_WINNT            // 指定要求的最低平台是 Windows Vista。
+#define _WIN32_WINNT 0x0600     // 将此值更改为相应的值,以适用于 Windows 的其他版本。
+#endif
+
+#ifndef _WIN32_WINDOWS          // 指定要求的最低平台是 Windows 98。
+#define _WIN32_WINDOWS 0x0410 // 将此值更改为适当的值,以适用于 Windows Me 或更高版本。
+#endif
+
+#ifndef _WIN32_IE                       // 指定要求的最低平台是 Internet Explorer 7.0。
+#define _WIN32_IE 0x0700        // 将此值更改为相应的值,以适用于 IE 的其他版本。
+#endif
+