├── README.md
└── DLL-Template
├── Dll-Template.vcxproj.user
├── stdafx.cpp
├── targetver.h
├── stdafx.h
├── Dll-Template.cpp
├── Dll-Template.sln
├── Dll-Template.vcxproj.filters
├── ReadMe.txt
└── Dll-Template.vcxproj
/README.md:
--------------------------------------------------------------------------------
1 | # DLL-Template
2 | Simple skeleton for a CPP DLL
3 |
--------------------------------------------------------------------------------
/DLL-Template/Dll-Template.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/DLL-Template/stdafx.cpp:
--------------------------------------------------------------------------------
1 | // stdafx.cpp : source file that includes just the standard includes
2 | // dllmain.pch will be the pre-compiled header
3 | // stdafx.obj will contain the pre-compiled type information
4 |
5 | #include "stdafx.h"
6 |
7 | // TODO: reference any additional headers you need in STDAFX.H
8 | // and not in this file
9 |
--------------------------------------------------------------------------------
/DLL-Template/targetver.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | // Including SDKDDKVer.h defines the highest available Windows platform.
4 |
5 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and
6 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h.
7 |
8 | #include
9 |
--------------------------------------------------------------------------------
/DLL-Template/stdafx.h:
--------------------------------------------------------------------------------
1 | // stdafx.h : include file for standard system include files,
2 | // or project specific include files that are used frequently, but
3 | // are changed infrequently
4 | //
5 |
6 | #pragma once
7 |
8 | #include "targetver.h"
9 |
10 | #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
11 | // Windows Header Files:
12 | #include
13 |
14 |
15 |
16 | // TODO: reference additional headers your program requires here
17 |
--------------------------------------------------------------------------------
/DLL-Template/Dll-Template.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 | #include
3 | #include
4 |
5 |
6 | BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
7 | {
8 | switch (ul_reason_for_call)
9 | {
10 | case DLL_PROCESS_ATTACH:
11 | MessageBox(NULL, L"DllMain loaded", L"Success", 0);
12 | case DLL_PROCESS_DETACH:
13 | break;
14 | case DLL_THREAD_ATTACH:
15 | break;
16 | case DLL_THREAD_DETACH:
17 | break;
18 | }
19 | return TRUE;
20 | }
21 |
22 | extern "C" __declspec(dllexport) BOOL test() {
23 | MessageBox(NULL, L"Exported test() function loaded", L"Success", 0);
24 |
25 | return TRUE;
26 | }
--------------------------------------------------------------------------------
/DLL-Template/Dll-Template.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.26228.10
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Dll-Template", "Dll-Template.vcxproj", "{2BB0E20C-2382-4B70-8496-D095090E5B91}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|x64 = Debug|x64
11 | Debug|x86 = Debug|x86
12 | Release|x64 = Release|x64
13 | Release|x86 = Release|x86
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {2BB0E20C-2382-4B70-8496-D095090E5B91}.Debug|x64.ActiveCfg = Debug|x64
17 | {2BB0E20C-2382-4B70-8496-D095090E5B91}.Debug|x64.Build.0 = Debug|x64
18 | {2BB0E20C-2382-4B70-8496-D095090E5B91}.Debug|x86.ActiveCfg = Debug|Win32
19 | {2BB0E20C-2382-4B70-8496-D095090E5B91}.Debug|x86.Build.0 = Debug|Win32
20 | {2BB0E20C-2382-4B70-8496-D095090E5B91}.Release|x64.ActiveCfg = Release|x64
21 | {2BB0E20C-2382-4B70-8496-D095090E5B91}.Release|x64.Build.0 = Release|x64
22 | {2BB0E20C-2382-4B70-8496-D095090E5B91}.Release|x86.ActiveCfg = Release|Win32
23 | {2BB0E20C-2382-4B70-8496-D095090E5B91}.Release|x86.Build.0 = Release|Win32
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/DLL-Template/Dll-Template.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 | Header Files
23 |
24 |
25 | Header Files
26 |
27 |
28 |
29 |
30 | Source Files
31 |
32 |
33 | Source Files
34 |
35 |
36 |
--------------------------------------------------------------------------------
/DLL-Template/ReadMe.txt:
--------------------------------------------------------------------------------
1 | ========================================================================
2 | DYNAMIC LINK LIBRARY : Dll-Template Project Overview
3 | ========================================================================
4 |
5 | AppWizard has created this Dll-Template DLL for you.
6 |
7 | This file contains a summary of what you will find in each of the files that
8 | make up your Dll-Template application.
9 |
10 |
11 | Dll-Template.vcxproj
12 | This is the main project file for VC++ projects generated using an Application Wizard.
13 | It contains information about the version of Visual C++ that generated the file, and
14 | information about the platforms, configurations, and project features selected with the
15 | Application Wizard.
16 |
17 | Dll-Template.vcxproj.filters
18 | This is the filters file for VC++ projects generated using an Application Wizard.
19 | It contains information about the association between the files in your project
20 | and the filters. This association is used in the IDE to show grouping of files with
21 | similar extensions under a specific node (for e.g. ".cpp" files are associated with the
22 | "Source Files" filter).
23 |
24 | Dll-Template.cpp
25 | This is the main DLL source file.
26 |
27 | When created, this DLL does not export any symbols. As a result, it
28 | will not produce a .lib file when it is built. If you wish this project
29 | to be a project dependency of some other project, you will either need to
30 | add code to export some symbols from the DLL so that an export library
31 | will be produced, or you can set the Ignore Input Library property to Yes
32 | on the General propert page of the Linker folder in the project's Property
33 | Pages dialog box.
34 |
35 | /////////////////////////////////////////////////////////////////////////////
36 | Other standard files:
37 |
38 | StdAfx.h, StdAfx.cpp
39 | These files are used to build a precompiled header (PCH) file
40 | named Dll-Template.pch and a precompiled types file named StdAfx.obj.
41 |
42 | /////////////////////////////////////////////////////////////////////////////
43 | Other notes:
44 |
45 | AppWizard uses "TODO:" comments to indicate parts of the source code you
46 | should add to or customize.
47 |
48 | /////////////////////////////////////////////////////////////////////////////
49 |
--------------------------------------------------------------------------------
/DLL-Template/Dll-Template.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 | 15.0
23 | {2BB0E20C-2382-4B70-8496-D095090E5B91}
24 | Win32Proj
25 | DllTemplate
26 | 10.0.14393.0
27 |
28 |
29 |
30 | DynamicLibrary
31 | true
32 | v141
33 | Unicode
34 |
35 |
36 | DynamicLibrary
37 | false
38 | v141
39 | true
40 | Unicode
41 |
42 |
43 | DynamicLibrary
44 | true
45 | v141
46 | Unicode
47 |
48 |
49 | DynamicLibrary
50 | false
51 | v141
52 | true
53 | Unicode
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 | true
75 |
76 |
77 | true
78 |
79 |
80 | false
81 |
82 |
83 | false
84 |
85 |
86 |
87 | Use
88 | Level3
89 | Disabled
90 | WIN32;_DEBUG;_WINDOWS;_USRDLL;DLLTEMPLATE_EXPORTS;%(PreprocessorDefinitions)
91 |
92 |
93 | Windows
94 |
95 |
96 |
97 |
98 | Use
99 | Level3
100 | Disabled
101 | _DEBUG;_WINDOWS;_USRDLL;DLLTEMPLATE_EXPORTS;%(PreprocessorDefinitions)
102 |
103 |
104 | Windows
105 |
106 |
107 |
108 |
109 | Level3
110 | Use
111 | MaxSpeed
112 | true
113 | true
114 | WIN32;NDEBUG;_WINDOWS;_USRDLL;DLLTEMPLATE_EXPORTS;%(PreprocessorDefinitions)
115 |
116 |
117 | Windows
118 | true
119 | true
120 |
121 |
122 |
123 |
124 | Level3
125 | Use
126 | MaxSpeed
127 | true
128 | true
129 | NDEBUG;_WINDOWS;_USRDLL;DLLTEMPLATE_EXPORTS;%(PreprocessorDefinitions)
130 |
131 |
132 | Windows
133 | true
134 | true
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 | Create
148 | Create
149 | Create
150 | Create
151 |
152 |
153 |
154 |
155 |
156 |
--------------------------------------------------------------------------------