├── .gitattributes ├── .gitignore ├── LSPDLL ├── LSPDLL.cpp ├── LSPDLL.def ├── LSPDLL.h ├── LSPDLL.rc ├── LSPDLL.vcxproj ├── LSPDLL.vcxproj.filters ├── ReadMe.txt ├── Resource.h ├── res │ └── LSPDLL.rc2 ├── stdafx.cpp ├── stdafx.h └── targetver.h ├── LSPLearn.sln └── LSPLearn ├── LSPLearn.cpp ├── LSPLearn.h ├── LSPLearn.rc ├── LSPLearn.vcxproj ├── LSPLearn.vcxproj.filters ├── LSPLearnDlg.cpp ├── LSPLearnDlg.h ├── LspHelper.h ├── ReadMe.txt ├── res ├── LSPLearn.ico └── LSPLearn.rc2 ├── resource.h ├── stdafx.cpp ├── stdafx.h └── targetver.h /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.userosscache 8 | *.sln.docstates 9 | 10 | # User-specific files (MonoDevelop/Xamarin Studio) 11 | *.userprefs 12 | 13 | # Build results 14 | [Dd]ebug/ 15 | [Dd]ebugPublic/ 16 | [Rr]elease/ 17 | [Rr]eleases/ 18 | [Xx]64/ 19 | [Xx]86/ 20 | [Bb]uild/ 21 | bld/ 22 | [Bb]in/ 23 | [Oo]bj/ 24 | 25 | # Visual Studio 2015 cache/options directory 26 | .vs/ 27 | # Uncomment if you have tasks that create the project's static files in wwwroot 28 | #wwwroot/ 29 | 30 | # MSTest test Results 31 | [Tt]est[Rr]esult*/ 32 | [Bb]uild[Ll]og.* 33 | 34 | # NUNIT 35 | *.VisualState.xml 36 | TestResult.xml 37 | 38 | # Build Results of an ATL Project 39 | [Dd]ebugPS/ 40 | [Rr]eleasePS/ 41 | dlldata.c 42 | 43 | # DNX 44 | project.lock.json 45 | artifacts/ 46 | 47 | *_i.c 48 | *_p.c 49 | *_i.h 50 | *.ilk 51 | *.meta 52 | *.obj 53 | *.pch 54 | *.pdb 55 | *.pgc 56 | *.pgd 57 | *.rsp 58 | *.sbr 59 | *.tlb 60 | *.tli 61 | *.tlh 62 | *.tmp 63 | *.tmp_proj 64 | *.log 65 | *.vspscc 66 | *.vssscc 67 | .builds 68 | *.pidb 69 | *.svclog 70 | *.scc 71 | 72 | # Chutzpah Test files 73 | _Chutzpah* 74 | 75 | # Visual C++ cache files 76 | ipch/ 77 | *.aps 78 | *.ncb 79 | *.opendb 80 | *.opensdf 81 | *.sdf 82 | *.cachefile 83 | *.VC.db 84 | 85 | # Visual Studio profiler 86 | *.psess 87 | *.vsp 88 | *.vspx 89 | *.sap 90 | 91 | # TFS 2012 Local Workspace 92 | $tf/ 93 | 94 | # Guidance Automation Toolkit 95 | *.gpState 96 | 97 | # ReSharper is a .NET coding add-in 98 | _ReSharper*/ 99 | *.[Rr]e[Ss]harper 100 | *.DotSettings.user 101 | 102 | # JustCode is a .NET coding add-in 103 | .JustCode 104 | 105 | # TeamCity is a build add-in 106 | _TeamCity* 107 | 108 | # DotCover is a Code Coverage Tool 109 | *.dotCover 110 | 111 | # NCrunch 112 | _NCrunch_* 113 | .*crunch*.local.xml 114 | nCrunchTemp_* 115 | 116 | # MightyMoose 117 | *.mm.* 118 | AutoTest.Net/ 119 | 120 | # Web workbench (sass) 121 | .sass-cache/ 122 | 123 | # Installshield output folder 124 | [Ee]xpress/ 125 | 126 | # DocProject is a documentation generator add-in 127 | DocProject/buildhelp/ 128 | DocProject/Help/*.HxT 129 | DocProject/Help/*.HxC 130 | DocProject/Help/*.hhc 131 | DocProject/Help/*.hhk 132 | DocProject/Help/*.hhp 133 | DocProject/Help/Html2 134 | DocProject/Help/html 135 | 136 | # Click-Once directory 137 | publish/ 138 | 139 | # Publish Web Output 140 | *.[Pp]ublish.xml 141 | *.azurePubxml 142 | 143 | # TODO: Un-comment the next line if you do not want to checkin 144 | # your web deploy settings because they may include unencrypted 145 | # passwords 146 | #*.pubxml 147 | *.publishproj 148 | 149 | # NuGet Packages 150 | *.nupkg 151 | # The packages folder can be ignored because of Package Restore 152 | **/packages/* 153 | # except build/, which is used as an MSBuild target. 154 | !**/packages/build/ 155 | # Uncomment if necessary however generally it will be regenerated when needed 156 | #!**/packages/repositories.config 157 | # NuGet v3's project.json files produces more ignoreable files 158 | *.nuget.props 159 | *.nuget.targets 160 | 161 | # Microsoft Azure Build Output 162 | csx/ 163 | *.build.csdef 164 | 165 | # Microsoft Azure Emulator 166 | ecf/ 167 | rcf/ 168 | 169 | # Windows Store app package directory 170 | AppPackages/ 171 | BundleArtifacts/ 172 | 173 | # Visual Studio cache files 174 | # files ending in .cache can be ignored 175 | *.[Cc]ache 176 | # but keep track of directories ending in .cache 177 | !*.[Cc]ache/ 178 | 179 | # Others 180 | ClientBin/ 181 | [Ss]tyle[Cc]op.* 182 | ~$* 183 | *~ 184 | *.dbmdl 185 | *.dbproj.schemaview 186 | *.pfx 187 | *.publishsettings 188 | node_modules/ 189 | orleans.codegen.cs 190 | 191 | # RIA/Silverlight projects 192 | Generated_Code/ 193 | 194 | # Backup & report files from converting an old project file 195 | # to a newer Visual Studio version. Backup files are not needed, 196 | # because we have git ;-) 197 | _UpgradeReport_Files/ 198 | Backup*/ 199 | UpgradeLog*.XML 200 | UpgradeLog*.htm 201 | 202 | # SQL Server files 203 | *.mdf 204 | *.ldf 205 | 206 | # Business Intelligence projects 207 | *.rdl.data 208 | *.bim.layout 209 | *.bim_*.settings 210 | 211 | # Microsoft Fakes 212 | FakesAssemblies/ 213 | 214 | # GhostDoc plugin setting file 215 | *.GhostDoc.xml 216 | 217 | # Node.js Tools for Visual Studio 218 | .ntvs_analysis.dat 219 | 220 | # Visual Studio 6 build log 221 | *.plg 222 | 223 | # Visual Studio 6 workspace options file 224 | *.opt 225 | 226 | # Visual Studio LightSwitch build output 227 | **/*.HTMLClient/GeneratedArtifacts 228 | **/*.DesktopClient/GeneratedArtifacts 229 | **/*.DesktopClient/ModelManifest.xml 230 | **/*.Server/GeneratedArtifacts 231 | **/*.Server/ModelManifest.xml 232 | _Pvt_Extensions 233 | 234 | # LightSwitch generated files 235 | GeneratedArtifacts/ 236 | ModelManifest.xml 237 | 238 | # Paket dependency manager 239 | .paket/paket.exe 240 | 241 | # FAKE - F# Make 242 | .fake/ 243 | -------------------------------------------------------------------------------- /LSPDLL/LSPDLL.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xianyue390348/LSPLearnDemo/311ffd987f5dd68dc4bf6244a1f13ef0129298eb/LSPDLL/LSPDLL.cpp -------------------------------------------------------------------------------- /LSPDLL/LSPDLL.def: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xianyue390348/LSPLearnDemo/311ffd987f5dd68dc4bf6244a1f13ef0129298eb/LSPDLL/LSPDLL.def -------------------------------------------------------------------------------- /LSPDLL/LSPDLL.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xianyue390348/LSPLearnDemo/311ffd987f5dd68dc4bf6244a1f13ef0129298eb/LSPDLL/LSPDLL.h -------------------------------------------------------------------------------- /LSPDLL/LSPDLL.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xianyue390348/LSPLearnDemo/311ffd987f5dd68dc4bf6244a1f13ef0129298eb/LSPDLL/LSPDLL.rc -------------------------------------------------------------------------------- /LSPDLL/LSPDLL.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | Debug 14 | x64 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | {B13CE5C2-AF3F-43CE-89A5-6EFC70E10362} 23 | LSPDLL 24 | 8.1 25 | MFCDLLProj 26 | 27 | 28 | 29 | DynamicLibrary 30 | true 31 | v140 32 | Unicode 33 | Static 34 | 35 | 36 | DynamicLibrary 37 | false 38 | v140 39 | true 40 | Unicode 41 | Static 42 | 43 | 44 | DynamicLibrary 45 | true 46 | v140 47 | Unicode 48 | Static 49 | 50 | 51 | DynamicLibrary 52 | false 53 | v140 54 | true 55 | Unicode 56 | Static 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | true 78 | 79 | 80 | true 81 | 82 | 83 | false 84 | 85 | 86 | false 87 | 88 | 89 | 90 | Use 91 | Level3 92 | Disabled 93 | WIN32;_WINDOWS;_DEBUG;_USRDLL;%(PreprocessorDefinitions) 94 | true 95 | 96 | 97 | Windows 98 | .\LSPDLL.def 99 | 100 | 101 | false 102 | _DEBUG;%(PreprocessorDefinitions) 103 | 104 | 105 | 0x0804 106 | _DEBUG;%(PreprocessorDefinitions) 107 | $(IntDir);%(AdditionalIncludeDirectories) 108 | 109 | 110 | 111 | 112 | Use 113 | Level3 114 | Disabled 115 | _WINDOWS;_DEBUG;_USRDLL;%(PreprocessorDefinitions) 116 | true 117 | 118 | 119 | Windows 120 | .\LSPDLL.def 121 | 122 | 123 | false 124 | _DEBUG;%(PreprocessorDefinitions) 125 | 126 | 127 | 0x0804 128 | _DEBUG;%(PreprocessorDefinitions) 129 | $(IntDir);%(AdditionalIncludeDirectories) 130 | 131 | 132 | 133 | 134 | Level3 135 | Use 136 | MaxSpeed 137 | true 138 | true 139 | WIN32;_WINDOWS;NDEBUG;_USRDLL;%(PreprocessorDefinitions) 140 | true 141 | 142 | 143 | Windows 144 | true 145 | true 146 | .\LSPDLL.def 147 | 148 | 149 | false 150 | NDEBUG;%(PreprocessorDefinitions) 151 | 152 | 153 | 0x0804 154 | NDEBUG;%(PreprocessorDefinitions) 155 | $(IntDir);%(AdditionalIncludeDirectories) 156 | 157 | 158 | 159 | 160 | Level3 161 | Use 162 | MaxSpeed 163 | true 164 | true 165 | _WINDOWS;NDEBUG;_USRDLL;%(PreprocessorDefinitions) 166 | true 167 | 168 | 169 | Windows 170 | true 171 | true 172 | .\LSPDLL.def 173 | 174 | 175 | false 176 | NDEBUG;%(PreprocessorDefinitions) 177 | 178 | 179 | 0x0804 180 | NDEBUG;%(PreprocessorDefinitions) 181 | $(IntDir);%(AdditionalIncludeDirectories) 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | Create 191 | Create 192 | Create 193 | Create 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | -------------------------------------------------------------------------------- /LSPDLL/LSPDLL.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 源文件 23 | 24 | 25 | 源文件 26 | 27 | 28 | 29 | 30 | 头文件 31 | 32 | 33 | 头文件 34 | 35 | 36 | 头文件 37 | 38 | 39 | 头文件 40 | 41 | 42 | 43 | 44 | 源文件 45 | 46 | 47 | 资源文件 48 | 49 | 50 | 51 | 52 | 资源文件 53 | 54 | 55 | -------------------------------------------------------------------------------- /LSPDLL/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | MICROSOFT 基础类库 : LSPDLL 项目概述 3 | ======================================================================== 4 | 5 | 6 | 应用程序向导已为您创建了此 LSPDLL DLL。此 DLL 不仅演示 Microsoft 基础类的基本使用方法,还可作为您编写 DLL 的起点。 7 | 8 | 本文件概要介绍组成 LSPDLL DLL 的每个文件的内容。 9 | 10 | LSPDLL.vcxproj 11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 12 | 13 | LSPDLL.vcxproj.filters 14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。 15 | 16 | LSPDLL.h 17 | 这是 DLL 的主头文件。它声明了 CLSPDLLApp 类。 18 | 19 | LSPDLL.cpp 20 | 这是主 DLL 源文件。它包含 CLSPDLLApp 类。 21 | 22 | LSPDLL.rc 23 | 这是程序使用的所有 Microsoft Windows 资源的列表。它包括 RES 子目录中存储的图标、位图和光标。此文件可以直接在 Microsoft Visual C++ 中进行编辑。 24 | 25 | res\LSPDLL.rc2 26 | 此文件包含不在 Microsoft Visual C++ 中进行编辑的资源。您应该将不可由资源编辑器编辑的所有资源放在此文件中。 27 | 28 | LSPDLL.def 29 | 此文件包含在 Microsoft Windows 中运行所必需的 DLL 的有关信息。它定义了 DLL 的名称和说明等参数,而且还从 DLL 导出函数。 30 | 31 | ///////////////////////////////////////////////////////////////////////////// 32 | 其他标准文件: 33 | 34 | StdAfx.h, StdAfx.cpp 35 | 这些文件用于生成名为 LSPDLL.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 36 | 37 | Resource.h 38 | 这是标准头文件,可用于定义新的资源 ID。Microsoft Visual C++ 将读取并更新此文件。 39 | 40 | ///////////////////////////////////////////////////////////////////////////// 41 | 其他注释: 42 | 43 | 应用程序向导使用“TODO:”来指示应添加或自定义的源代码部分。 44 | 45 | ///////////////////////////////////////////////////////////////////////////// 46 | -------------------------------------------------------------------------------- /LSPDLL/Resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xianyue390348/LSPLearnDemo/311ffd987f5dd68dc4bf6244a1f13ef0129298eb/LSPDLL/Resource.h -------------------------------------------------------------------------------- /LSPDLL/res/LSPDLL.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xianyue390348/LSPLearnDemo/311ffd987f5dd68dc4bf6244a1f13ef0129298eb/LSPDLL/res/LSPDLL.rc2 -------------------------------------------------------------------------------- /LSPDLL/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xianyue390348/LSPLearnDemo/311ffd987f5dd68dc4bf6244a1f13ef0129298eb/LSPDLL/stdafx.cpp -------------------------------------------------------------------------------- /LSPDLL/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xianyue390348/LSPLearnDemo/311ffd987f5dd68dc4bf6244a1f13ef0129298eb/LSPDLL/stdafx.h -------------------------------------------------------------------------------- /LSPDLL/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xianyue390348/LSPLearnDemo/311ffd987f5dd68dc4bf6244a1f13ef0129298eb/LSPDLL/targetver.h -------------------------------------------------------------------------------- /LSPLearn.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.25420.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "LSPLearn", "LSPLearn\LSPLearn.vcxproj", "{BE9AFD1E-7EF0-41F6-B3AF-DA7C853625B1}" 7 | EndProject 8 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "LSPDLL", "LSPDLL\LSPDLL.vcxproj", "{B13CE5C2-AF3F-43CE-89A5-6EFC70E10362}" 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | Debug|x64 = Debug|x64 13 | Debug|x86 = Debug|x86 14 | Release|x64 = Release|x64 15 | Release|x86 = Release|x86 16 | EndGlobalSection 17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 18 | {BE9AFD1E-7EF0-41F6-B3AF-DA7C853625B1}.Debug|x64.ActiveCfg = Debug|x64 19 | {BE9AFD1E-7EF0-41F6-B3AF-DA7C853625B1}.Debug|x64.Build.0 = Debug|x64 20 | {BE9AFD1E-7EF0-41F6-B3AF-DA7C853625B1}.Debug|x86.ActiveCfg = Debug|Win32 21 | {BE9AFD1E-7EF0-41F6-B3AF-DA7C853625B1}.Debug|x86.Build.0 = Debug|Win32 22 | {BE9AFD1E-7EF0-41F6-B3AF-DA7C853625B1}.Release|x64.ActiveCfg = Release|x64 23 | {BE9AFD1E-7EF0-41F6-B3AF-DA7C853625B1}.Release|x64.Build.0 = Release|x64 24 | {BE9AFD1E-7EF0-41F6-B3AF-DA7C853625B1}.Release|x86.ActiveCfg = Release|Win32 25 | {BE9AFD1E-7EF0-41F6-B3AF-DA7C853625B1}.Release|x86.Build.0 = Release|Win32 26 | {B13CE5C2-AF3F-43CE-89A5-6EFC70E10362}.Debug|x64.ActiveCfg = Debug|x64 27 | {B13CE5C2-AF3F-43CE-89A5-6EFC70E10362}.Debug|x64.Build.0 = Debug|x64 28 | {B13CE5C2-AF3F-43CE-89A5-6EFC70E10362}.Debug|x86.ActiveCfg = Debug|Win32 29 | {B13CE5C2-AF3F-43CE-89A5-6EFC70E10362}.Debug|x86.Build.0 = Debug|Win32 30 | {B13CE5C2-AF3F-43CE-89A5-6EFC70E10362}.Release|x64.ActiveCfg = Release|x64 31 | {B13CE5C2-AF3F-43CE-89A5-6EFC70E10362}.Release|x64.Build.0 = Release|x64 32 | {B13CE5C2-AF3F-43CE-89A5-6EFC70E10362}.Release|x86.ActiveCfg = Release|Win32 33 | {B13CE5C2-AF3F-43CE-89A5-6EFC70E10362}.Release|x86.Build.0 = Release|Win32 34 | EndGlobalSection 35 | GlobalSection(SolutionProperties) = preSolution 36 | HideSolutionNode = FALSE 37 | EndGlobalSection 38 | EndGlobal 39 | -------------------------------------------------------------------------------- /LSPLearn/LSPLearn.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xianyue390348/LSPLearnDemo/311ffd987f5dd68dc4bf6244a1f13ef0129298eb/LSPLearn/LSPLearn.cpp -------------------------------------------------------------------------------- /LSPLearn/LSPLearn.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xianyue390348/LSPLearnDemo/311ffd987f5dd68dc4bf6244a1f13ef0129298eb/LSPLearn/LSPLearn.h -------------------------------------------------------------------------------- /LSPLearn/LSPLearn.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xianyue390348/LSPLearnDemo/311ffd987f5dd68dc4bf6244a1f13ef0129298eb/LSPLearn/LSPLearn.rc -------------------------------------------------------------------------------- /LSPLearn/LSPLearn.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | Debug 14 | x64 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | {BE9AFD1E-7EF0-41F6-B3AF-DA7C853625B1} 23 | LSPLearn 24 | 8.1 25 | MFCProj 26 | 27 | 28 | 29 | Application 30 | true 31 | v140 32 | Unicode 33 | Static 34 | 35 | 36 | Application 37 | false 38 | v140 39 | true 40 | Unicode 41 | Static 42 | 43 | 44 | Application 45 | true 46 | v140 47 | Unicode 48 | Static 49 | 50 | 51 | Application 52 | false 53 | v140 54 | true 55 | Unicode 56 | Static 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | true 78 | 79 | 80 | true 81 | 82 | 83 | false 84 | 85 | 86 | false 87 | 88 | 89 | 90 | Use 91 | Level3 92 | Disabled 93 | WIN32;_WINDOWS;_DEBUG;%(PreprocessorDefinitions) 94 | true 95 | 96 | 97 | Windows 98 | 99 | 100 | false 101 | true 102 | _DEBUG;%(PreprocessorDefinitions) 103 | 104 | 105 | 0x0804 106 | _DEBUG;%(PreprocessorDefinitions) 107 | $(IntDir);%(AdditionalIncludeDirectories) 108 | 109 | 110 | 111 | 112 | Use 113 | Level3 114 | Disabled 115 | _WINDOWS;_DEBUG;%(PreprocessorDefinitions) 116 | true 117 | 118 | 119 | Windows 120 | 121 | 122 | false 123 | true 124 | _DEBUG;%(PreprocessorDefinitions) 125 | 126 | 127 | 0x0804 128 | _DEBUG;%(PreprocessorDefinitions) 129 | $(IntDir);%(AdditionalIncludeDirectories) 130 | 131 | 132 | 133 | 134 | Level3 135 | Use 136 | MaxSpeed 137 | true 138 | true 139 | WIN32;_WINDOWS;NDEBUG;%(PreprocessorDefinitions) 140 | true 141 | 142 | 143 | Windows 144 | true 145 | true 146 | 147 | 148 | false 149 | true 150 | NDEBUG;%(PreprocessorDefinitions) 151 | 152 | 153 | 0x0804 154 | NDEBUG;%(PreprocessorDefinitions) 155 | $(IntDir);%(AdditionalIncludeDirectories) 156 | 157 | 158 | 159 | 160 | Level3 161 | Use 162 | MaxSpeed 163 | true 164 | true 165 | _WINDOWS;NDEBUG;%(PreprocessorDefinitions) 166 | true 167 | 168 | 169 | Windows 170 | true 171 | true 172 | 173 | 174 | false 175 | true 176 | NDEBUG;%(PreprocessorDefinitions) 177 | 178 | 179 | 0x0804 180 | NDEBUG;%(PreprocessorDefinitions) 181 | $(IntDir);%(AdditionalIncludeDirectories) 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | Create 200 | Create 201 | Create 202 | Create 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | -------------------------------------------------------------------------------- /LSPLearn/LSPLearn.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 头文件 23 | 24 | 25 | 头文件 26 | 27 | 28 | 头文件 29 | 30 | 31 | 头文件 32 | 33 | 34 | 头文件 35 | 36 | 37 | 头文件 38 | 39 | 40 | 41 | 42 | 源文件 43 | 44 | 45 | 源文件 46 | 47 | 48 | 源文件 49 | 50 | 51 | 52 | 53 | 资源文件 54 | 55 | 56 | 57 | 58 | 资源文件 59 | 60 | 61 | 62 | 63 | 资源文件 64 | 65 | 66 | -------------------------------------------------------------------------------- /LSPLearn/LSPLearnDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xianyue390348/LSPLearnDemo/311ffd987f5dd68dc4bf6244a1f13ef0129298eb/LSPLearn/LSPLearnDlg.cpp -------------------------------------------------------------------------------- /LSPLearn/LSPLearnDlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xianyue390348/LSPLearnDemo/311ffd987f5dd68dc4bf6244a1f13ef0129298eb/LSPLearn/LSPLearnDlg.h -------------------------------------------------------------------------------- /LSPLearn/LspHelper.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "stdafx.h" 3 | 4 | LPWSAPROTOCOL_INFO GetProvider(int &nProtocols) 5 | { 6 | DWORD dwSize = 0; 7 | WSAPROTOCOL_INFO ProtoInfo = { 0 }; 8 | WSAEnumProtocols(NULL, &ProtoInfo, &dwSize); 9 | if (dwSize <= 0) { 10 | return NULL; 11 | } 12 | LPWSAPROTOCOL_INFO pProtoInfos = new WSAPROTOCOL_INFO[dwSize / sizeof(WSAPROTOCOL_INFO)]; 13 | nProtocols = WSAEnumProtocols(NULL, pProtoInfos, &dwSize); 14 | return pProtoInfos; 15 | } -------------------------------------------------------------------------------- /LSPLearn/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ================================================================================ 2 | MICROSOFT 基础类库 : LSPLearn 项目概述 3 | =============================================================================== 4 | 5 | 应用程序向导已为您创建了此 LSPLearn 应用程序。此应用程序不仅演示 Microsoft 基础类的基本使用方法,还可作为您编写应用程序的起点。 6 | 7 | 本文件概要介绍组成 LSPLearn 应用程序的每个文件的内容。 8 | 9 | LSPLearn.vcxproj 10 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 11 | 12 | LSPLearn.vcxproj.filters 13 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。 14 | 15 | LSPLearn.h 16 | 这是应用程序的主头文件。 17 | 其中包括其他项目特定的标头(包括 Resource.h),并声明 CLSPLearnApp 应用程序类。 18 | 19 | LSPLearn.cpp 20 | 这是包含应用程序类 CLSPLearnApp 的主应用程序源文件。 21 | 22 | LSPLearn.rc 23 | 这是程序使用的所有 Microsoft Windows 资源的列表。它包括 RES 子目录中存储的图标、位图和光标。此文件可以直接在 Microsoft Visual C++ 中进行编辑。项目资源包含在 2052 中。 24 | 25 | res\LSPLearn.ico 26 | 这是用作应用程序图标的图标文件。此图标包括在主资源文件 LSPLearn.rc 中。 27 | 28 | res\LSPLearn.rc2 29 | 此文件包含不在 Microsoft Visual C++ 中进行编辑的资源。您应该将不可由资源编辑器编辑的所有资源放在此文件中。 30 | 31 | 32 | ///////////////////////////////////////////////////////////////////////////// 33 | 34 | 应用程序向导创建一个对话框类: 35 | 36 | LSPLearnDlg.h、LSPLearnDlg.cpp - 对话框 37 | 这些文件包含 CLSPLearnDlg 类。此类定义应用程序的主对话框的行为。对话框模板包含在 LSPLearn.rc 中,该文件可以在 Microsoft Visual C++ 中编辑。 38 | 39 | ///////////////////////////////////////////////////////////////////////////// 40 | 41 | 其他功能: 42 | 43 | ActiveX 控件 44 | 该应用程序包含对使用 ActiveX 控件的支持。 45 | 46 | Windows 套接字 47 | 应用程序包含对通过 TCP/IP 网络建立通信的支持。 48 | 49 | ///////////////////////////////////////////////////////////////////////////// 50 | 51 | 其他标准文件: 52 | 53 | StdAfx.h, StdAfx.cpp 54 | 这些文件用于生成名为 LSPLearn.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 55 | 56 | Resource.h 57 | 这是标准头文件,可用于定义新的资源 ID。Microsoft Visual C++ 将读取并更新此文件。 58 | 59 | LSPLearn.manifest 60 | Windows XP 使用应用程序清单文件来描述特定版本的并行程序集的应用程序依赖项。加载程序使用这些信息来从程序集缓存中加载相应的程序集,并保护其不被应用程序访问。应用程序清单可能会包含在内,以作为与应用程序可执行文件安装在同一文件夹中的外部 .manifest 文件进行重新分发,它还可能以资源的形式包含在可执行文件中。 61 | ///////////////////////////////////////////////////////////////////////////// 62 | 63 | 其他注释: 64 | 65 | 应用程序向导使用“TODO:”来指示应添加或自定义的源代码部分。 66 | 67 | 如果应用程序使用共享 DLL 中的 MFC,您将需要重新分发 MFC DLL。如果应用程序所使用的语言与操作系统的区域设置不同,则还需要重新分发相应的本地化资源 mfc110XXX.DLL。 68 | 有关上述话题的更多信息,请参见 MSDN 文档中有关重新分发 Visual C++ 应用程序的部分。 69 | 70 | ///////////////////////////////////////////////////////////////////////////// 71 | -------------------------------------------------------------------------------- /LSPLearn/res/LSPLearn.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xianyue390348/LSPLearnDemo/311ffd987f5dd68dc4bf6244a1f13ef0129298eb/LSPLearn/res/LSPLearn.ico -------------------------------------------------------------------------------- /LSPLearn/res/LSPLearn.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xianyue390348/LSPLearnDemo/311ffd987f5dd68dc4bf6244a1f13ef0129298eb/LSPLearn/res/LSPLearn.rc2 -------------------------------------------------------------------------------- /LSPLearn/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xianyue390348/LSPLearnDemo/311ffd987f5dd68dc4bf6244a1f13ef0129298eb/LSPLearn/resource.h -------------------------------------------------------------------------------- /LSPLearn/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xianyue390348/LSPLearnDemo/311ffd987f5dd68dc4bf6244a1f13ef0129298eb/LSPLearn/stdafx.cpp -------------------------------------------------------------------------------- /LSPLearn/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xianyue390348/LSPLearnDemo/311ffd987f5dd68dc4bf6244a1f13ef0129298eb/LSPLearn/stdafx.h -------------------------------------------------------------------------------- /LSPLearn/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xianyue390348/LSPLearnDemo/311ffd987f5dd68dc4bf6244a1f13ef0129298eb/LSPLearn/targetver.h --------------------------------------------------------------------------------