Skip to content

Commit cb1c169

Browse files
committed
add example project
1 parent b1b2b9e commit cb1c169

File tree

15 files changed

+410
-0
lines changed

15 files changed

+410
-0
lines changed
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.32510.428
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MyExe", "MyExe\MyExe.csproj", "{C9F71251-D309-4503-B743-3DC7B2968B03}"
7+
EndProject
8+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UnusedLibrary", "UnusedLibrary\UnusedLibrary.csproj", "{12E07AC5-2027-46D3-9572-697BE0D971BF}"
9+
EndProject
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyLib", "MyLib\MyLib.csproj", "{155197BE-F107-417B-A354-C448BD72903C}"
11+
EndProject
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyRecursiveLib", "MyRecursiveLib\MyRecursiveLib.csproj", "{0031F30A-F9DA-4E4C-B8B5-CA0E0588047A}"
13+
EndProject
14+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MyNativeLib", "MyNativeLib\MyNativeLib.vcxproj", "{8602C99E-DCE5-4E62-BB52-13B32379CD04}"
15+
EndProject
16+
Global
17+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
18+
Debug|Any CPU = Debug|Any CPU
19+
Debug|x64 = Debug|x64
20+
Debug|x86 = Debug|x86
21+
Release|Any CPU = Release|Any CPU
22+
Release|x64 = Release|x64
23+
Release|x86 = Release|x86
24+
EndGlobalSection
25+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
26+
{C9F71251-D309-4503-B743-3DC7B2968B03}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{C9F71251-D309-4503-B743-3DC7B2968B03}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{C9F71251-D309-4503-B743-3DC7B2968B03}.Debug|x64.ActiveCfg = Debug|Any CPU
29+
{C9F71251-D309-4503-B743-3DC7B2968B03}.Debug|x64.Build.0 = Debug|Any CPU
30+
{C9F71251-D309-4503-B743-3DC7B2968B03}.Debug|x86.ActiveCfg = Debug|Any CPU
31+
{C9F71251-D309-4503-B743-3DC7B2968B03}.Debug|x86.Build.0 = Debug|Any CPU
32+
{C9F71251-D309-4503-B743-3DC7B2968B03}.Release|Any CPU.ActiveCfg = Release|Any CPU
33+
{C9F71251-D309-4503-B743-3DC7B2968B03}.Release|Any CPU.Build.0 = Release|Any CPU
34+
{C9F71251-D309-4503-B743-3DC7B2968B03}.Release|x64.ActiveCfg = Release|Any CPU
35+
{C9F71251-D309-4503-B743-3DC7B2968B03}.Release|x64.Build.0 = Release|Any CPU
36+
{C9F71251-D309-4503-B743-3DC7B2968B03}.Release|x86.ActiveCfg = Release|Any CPU
37+
{C9F71251-D309-4503-B743-3DC7B2968B03}.Release|x86.Build.0 = Release|Any CPU
38+
{12E07AC5-2027-46D3-9572-697BE0D971BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
39+
{12E07AC5-2027-46D3-9572-697BE0D971BF}.Debug|Any CPU.Build.0 = Debug|Any CPU
40+
{12E07AC5-2027-46D3-9572-697BE0D971BF}.Debug|x64.ActiveCfg = Debug|Any CPU
41+
{12E07AC5-2027-46D3-9572-697BE0D971BF}.Debug|x64.Build.0 = Debug|Any CPU
42+
{12E07AC5-2027-46D3-9572-697BE0D971BF}.Debug|x86.ActiveCfg = Debug|Any CPU
43+
{12E07AC5-2027-46D3-9572-697BE0D971BF}.Debug|x86.Build.0 = Debug|Any CPU
44+
{12E07AC5-2027-46D3-9572-697BE0D971BF}.Release|Any CPU.ActiveCfg = Release|Any CPU
45+
{12E07AC5-2027-46D3-9572-697BE0D971BF}.Release|Any CPU.Build.0 = Release|Any CPU
46+
{12E07AC5-2027-46D3-9572-697BE0D971BF}.Release|x64.ActiveCfg = Release|Any CPU
47+
{12E07AC5-2027-46D3-9572-697BE0D971BF}.Release|x64.Build.0 = Release|Any CPU
48+
{12E07AC5-2027-46D3-9572-697BE0D971BF}.Release|x86.ActiveCfg = Release|Any CPU
49+
{12E07AC5-2027-46D3-9572-697BE0D971BF}.Release|x86.Build.0 = Release|Any CPU
50+
{155197BE-F107-417B-A354-C448BD72903C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
51+
{155197BE-F107-417B-A354-C448BD72903C}.Debug|Any CPU.Build.0 = Debug|Any CPU
52+
{155197BE-F107-417B-A354-C448BD72903C}.Debug|x64.ActiveCfg = Debug|Any CPU
53+
{155197BE-F107-417B-A354-C448BD72903C}.Debug|x64.Build.0 = Debug|Any CPU
54+
{155197BE-F107-417B-A354-C448BD72903C}.Debug|x86.ActiveCfg = Debug|Any CPU
55+
{155197BE-F107-417B-A354-C448BD72903C}.Debug|x86.Build.0 = Debug|Any CPU
56+
{155197BE-F107-417B-A354-C448BD72903C}.Release|Any CPU.ActiveCfg = Release|Any CPU
57+
{155197BE-F107-417B-A354-C448BD72903C}.Release|Any CPU.Build.0 = Release|Any CPU
58+
{155197BE-F107-417B-A354-C448BD72903C}.Release|x64.ActiveCfg = Release|Any CPU
59+
{155197BE-F107-417B-A354-C448BD72903C}.Release|x64.Build.0 = Release|Any CPU
60+
{155197BE-F107-417B-A354-C448BD72903C}.Release|x86.ActiveCfg = Release|Any CPU
61+
{155197BE-F107-417B-A354-C448BD72903C}.Release|x86.Build.0 = Release|Any CPU
62+
{0031F30A-F9DA-4E4C-B8B5-CA0E0588047A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
63+
{0031F30A-F9DA-4E4C-B8B5-CA0E0588047A}.Debug|Any CPU.Build.0 = Debug|Any CPU
64+
{0031F30A-F9DA-4E4C-B8B5-CA0E0588047A}.Debug|x64.ActiveCfg = Debug|Any CPU
65+
{0031F30A-F9DA-4E4C-B8B5-CA0E0588047A}.Debug|x64.Build.0 = Debug|Any CPU
66+
{0031F30A-F9DA-4E4C-B8B5-CA0E0588047A}.Debug|x86.ActiveCfg = Debug|Any CPU
67+
{0031F30A-F9DA-4E4C-B8B5-CA0E0588047A}.Debug|x86.Build.0 = Debug|Any CPU
68+
{0031F30A-F9DA-4E4C-B8B5-CA0E0588047A}.Release|Any CPU.ActiveCfg = Release|Any CPU
69+
{0031F30A-F9DA-4E4C-B8B5-CA0E0588047A}.Release|Any CPU.Build.0 = Release|Any CPU
70+
{0031F30A-F9DA-4E4C-B8B5-CA0E0588047A}.Release|x64.ActiveCfg = Release|Any CPU
71+
{0031F30A-F9DA-4E4C-B8B5-CA0E0588047A}.Release|x64.Build.0 = Release|Any CPU
72+
{0031F30A-F9DA-4E4C-B8B5-CA0E0588047A}.Release|x86.ActiveCfg = Release|Any CPU
73+
{0031F30A-F9DA-4E4C-B8B5-CA0E0588047A}.Release|x86.Build.0 = Release|Any CPU
74+
{8602C99E-DCE5-4E62-BB52-13B32379CD04}.Debug|Any CPU.ActiveCfg = Debug|Win32
75+
{8602C99E-DCE5-4E62-BB52-13B32379CD04}.Debug|x64.ActiveCfg = Debug|x64
76+
{8602C99E-DCE5-4E62-BB52-13B32379CD04}.Debug|x64.Build.0 = Debug|x64
77+
{8602C99E-DCE5-4E62-BB52-13B32379CD04}.Debug|x86.ActiveCfg = Debug|Win32
78+
{8602C99E-DCE5-4E62-BB52-13B32379CD04}.Debug|x86.Build.0 = Debug|Win32
79+
{8602C99E-DCE5-4E62-BB52-13B32379CD04}.Release|Any CPU.ActiveCfg = Release|Win32
80+
{8602C99E-DCE5-4E62-BB52-13B32379CD04}.Release|x64.ActiveCfg = Release|x64
81+
{8602C99E-DCE5-4E62-BB52-13B32379CD04}.Release|x64.Build.0 = Release|x64
82+
{8602C99E-DCE5-4E62-BB52-13B32379CD04}.Release|x86.ActiveCfg = Release|Win32
83+
{8602C99E-DCE5-4E62-BB52-13B32379CD04}.Release|x86.Build.0 = Release|Win32
84+
EndGlobalSection
85+
GlobalSection(SolutionProperties) = preSolution
86+
HideSolutionNode = FALSE
87+
EndGlobalSection
88+
GlobalSection(ExtensibilityGlobals) = postSolution
89+
SolutionGuid = {9632159A-08B6-4F02-851C-EDDC91B852FE}
90+
EndGlobalSection
91+
EndGlobal

ExampleProject/MyExe/MyExe.csproj

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>netcoreapp3.1</TargetFramework>
6+
</PropertyGroup>
7+
8+
<ItemGroup>
9+
<ProjectReference Include="..\MyLib\MyLib.csproj" />
10+
<ProjectReference Include="..\MyNativeLib\MyNativeLib.vcxproj" />
11+
<ProjectReference Include="..\MyRecursiveLib\MyRecursiveLib.csproj" />
12+
</ItemGroup>
13+
14+
</Project>

ExampleProject/MyExe/Program.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System;
2+
3+
namespace MyExe
4+
{
5+
class Program
6+
{
7+
static void Main(string[] args)
8+
{
9+
Console.WriteLine("Hello World!");
10+
}
11+
}
12+
}

ExampleProject/MyLib/Class1.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
using System;
2+
3+
namespace MyLib
4+
{
5+
public class Class1
6+
{
7+
}
8+
}

ExampleProject/MyLib/MyLib.csproj

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netstandard2.1</TargetFramework>
5+
</PropertyGroup>
6+
7+
<ItemGroup>
8+
<ProjectReference Include="..\MyRecursiveLib\MyRecursiveLib.csproj" />
9+
</ItemGroup>
10+
11+
</Project>
Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|Win32">
5+
<Configuration>Debug</Configuration>
6+
<Platform>Win32</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Release|Win32">
9+
<Configuration>Release</Configuration>
10+
<Platform>Win32</Platform>
11+
</ProjectConfiguration>
12+
<ProjectConfiguration Include="Debug|x64">
13+
<Configuration>Debug</Configuration>
14+
<Platform>x64</Platform>
15+
</ProjectConfiguration>
16+
<ProjectConfiguration Include="Release|x64">
17+
<Configuration>Release</Configuration>
18+
<Platform>x64</Platform>
19+
</ProjectConfiguration>
20+
</ItemGroup>
21+
<PropertyGroup Label="Globals">
22+
<VCProjectVersion>16.0</VCProjectVersion>
23+
<Keyword>Win32Proj</Keyword>
24+
<ProjectGuid>{8602c99e-dce5-4e62-bb52-13b32379cd04}</ProjectGuid>
25+
<RootNamespace>MyNativeLib</RootNamespace>
26+
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
27+
</PropertyGroup>
28+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
29+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
30+
<ConfigurationType>DynamicLibrary</ConfigurationType>
31+
<UseDebugLibraries>true</UseDebugLibraries>
32+
<PlatformToolset>v142</PlatformToolset>
33+
<CharacterSet>Unicode</CharacterSet>
34+
</PropertyGroup>
35+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
36+
<ConfigurationType>DynamicLibrary</ConfigurationType>
37+
<UseDebugLibraries>false</UseDebugLibraries>
38+
<PlatformToolset>v142</PlatformToolset>
39+
<WholeProgramOptimization>true</WholeProgramOptimization>
40+
<CharacterSet>Unicode</CharacterSet>
41+
</PropertyGroup>
42+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
43+
<ConfigurationType>DynamicLibrary</ConfigurationType>
44+
<UseDebugLibraries>true</UseDebugLibraries>
45+
<PlatformToolset>v142</PlatformToolset>
46+
<CharacterSet>Unicode</CharacterSet>
47+
</PropertyGroup>
48+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
49+
<ConfigurationType>DynamicLibrary</ConfigurationType>
50+
<UseDebugLibraries>false</UseDebugLibraries>
51+
<PlatformToolset>v142</PlatformToolset>
52+
<WholeProgramOptimization>true</WholeProgramOptimization>
53+
<CharacterSet>Unicode</CharacterSet>
54+
</PropertyGroup>
55+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
56+
<ImportGroup Label="ExtensionSettings">
57+
</ImportGroup>
58+
<ImportGroup Label="Shared">
59+
</ImportGroup>
60+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
61+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
62+
</ImportGroup>
63+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
64+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
65+
</ImportGroup>
66+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
67+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
68+
</ImportGroup>
69+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
70+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
71+
</ImportGroup>
72+
<PropertyGroup Label="UserMacros" />
73+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
74+
<LinkIncremental>true</LinkIncremental>
75+
</PropertyGroup>
76+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
77+
<LinkIncremental>false</LinkIncremental>
78+
</PropertyGroup>
79+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
80+
<LinkIncremental>true</LinkIncremental>
81+
</PropertyGroup>
82+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
83+
<LinkIncremental>false</LinkIncremental>
84+
</PropertyGroup>
85+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
86+
<ClCompile>
87+
<WarningLevel>Level3</WarningLevel>
88+
<SDLCheck>true</SDLCheck>
89+
<PreprocessorDefinitions>WIN32;_DEBUG;MYNATIVELIB_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
90+
<ConformanceMode>true</ConformanceMode>
91+
<PrecompiledHeader>Use</PrecompiledHeader>
92+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
93+
</ClCompile>
94+
<Link>
95+
<SubSystem>Windows</SubSystem>
96+
<GenerateDebugInformation>true</GenerateDebugInformation>
97+
<EnableUAC>false</EnableUAC>
98+
</Link>
99+
</ItemDefinitionGroup>
100+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
101+
<ClCompile>
102+
<WarningLevel>Level3</WarningLevel>
103+
<FunctionLevelLinking>true</FunctionLevelLinking>
104+
<IntrinsicFunctions>true</IntrinsicFunctions>
105+
<SDLCheck>true</SDLCheck>
106+
<PreprocessorDefinitions>WIN32;NDEBUG;MYNATIVELIB_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
107+
<ConformanceMode>true</ConformanceMode>
108+
<PrecompiledHeader>Use</PrecompiledHeader>
109+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
110+
</ClCompile>
111+
<Link>
112+
<SubSystem>Windows</SubSystem>
113+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
114+
<OptimizeReferences>true</OptimizeReferences>
115+
<GenerateDebugInformation>true</GenerateDebugInformation>
116+
<EnableUAC>false</EnableUAC>
117+
</Link>
118+
</ItemDefinitionGroup>
119+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
120+
<ClCompile>
121+
<WarningLevel>Level3</WarningLevel>
122+
<SDLCheck>true</SDLCheck>
123+
<PreprocessorDefinitions>_DEBUG;MYNATIVELIB_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
124+
<ConformanceMode>true</ConformanceMode>
125+
<PrecompiledHeader>Use</PrecompiledHeader>
126+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
127+
</ClCompile>
128+
<Link>
129+
<SubSystem>Windows</SubSystem>
130+
<GenerateDebugInformation>true</GenerateDebugInformation>
131+
<EnableUAC>false</EnableUAC>
132+
</Link>
133+
</ItemDefinitionGroup>
134+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
135+
<ClCompile>
136+
<WarningLevel>Level3</WarningLevel>
137+
<FunctionLevelLinking>true</FunctionLevelLinking>
138+
<IntrinsicFunctions>true</IntrinsicFunctions>
139+
<SDLCheck>true</SDLCheck>
140+
<PreprocessorDefinitions>NDEBUG;MYNATIVELIB_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
141+
<ConformanceMode>true</ConformanceMode>
142+
<PrecompiledHeader>Use</PrecompiledHeader>
143+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
144+
</ClCompile>
145+
<Link>
146+
<SubSystem>Windows</SubSystem>
147+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
148+
<OptimizeReferences>true</OptimizeReferences>
149+
<GenerateDebugInformation>true</GenerateDebugInformation>
150+
<EnableUAC>false</EnableUAC>
151+
</Link>
152+
</ItemDefinitionGroup>
153+
<ItemGroup>
154+
<ClInclude Include="framework.h" />
155+
<ClInclude Include="pch.h" />
156+
</ItemGroup>
157+
<ItemGroup>
158+
<ClCompile Include="dllmain.cpp" />
159+
<ClCompile Include="pch.cpp">
160+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
161+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
162+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
163+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
164+
</ClCompile>
165+
</ItemGroup>
166+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
167+
<ImportGroup Label="ExtensionTargets">
168+
</ImportGroup>
169+
</Project>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<Filter Include="Source Files">
5+
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
6+
<Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7+
</Filter>
8+
<Filter Include="Header Files">
9+
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
10+
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
11+
</Filter>
12+
<Filter Include="Resource Files">
13+
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
14+
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
15+
</Filter>
16+
</ItemGroup>
17+
<ItemGroup>
18+
<ClInclude Include="framework.h">
19+
<Filter>Header Files</Filter>
20+
</ClInclude>
21+
<ClInclude Include="pch.h">
22+
<Filter>Header Files</Filter>
23+
</ClInclude>
24+
</ItemGroup>
25+
<ItemGroup>
26+
<ClCompile Include="dllmain.cpp">
27+
<Filter>Source Files</Filter>
28+
</ClCompile>
29+
<ClCompile Include="pch.cpp">
30+
<Filter>Source Files</Filter>
31+
</ClCompile>
32+
</ItemGroup>
33+
</Project>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// dllmain.cpp : Defines the entry point for the DLL application.
2+
#include "pch.h"
3+
4+
BOOL APIENTRY DllMain( HMODULE hModule,
5+
DWORD ul_reason_for_call,
6+
LPVOID lpReserved
7+
)
8+
{
9+
switch (ul_reason_for_call)
10+
{
11+
case DLL_PROCESS_ATTACH:
12+
case DLL_THREAD_ATTACH:
13+
case DLL_THREAD_DETACH:
14+
case DLL_PROCESS_DETACH:
15+
break;
16+
}
17+
return TRUE;
18+
}
19+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#pragma once
2+
3+
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
4+
// Windows Header Files
5+
#include <windows.h>

ExampleProject/MyNativeLib/pch.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// pch.cpp: source file corresponding to the pre-compiled header
2+
3+
#include "pch.h"
4+
5+
// When you are using pre-compiled headers, this source file is necessary for compilation to succeed.

0 commit comments

Comments
 (0)