Skip to content

Commit 2199972

Browse files
2 parents c2ffd7d + 2c493f2 commit 2199972

27 files changed

+1357
-18
lines changed

3_Web/ASPNETCore/AngularSample/ClientApp/package-lock.json

+18-18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.5.33209.295
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "COMCalculator", "COMCalculator\COMCalculator.vcxproj", "{DB5DD76D-457C-42CF-8BF6-BA8214AD0404}"
7+
EndProject
8+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "COMCalculatorPS", "COMCalculatorPS\COMCalculatorPS.vcxproj", "{68F88E50-E67B-444F-A5BC-E7D678ACE795}"
9+
ProjectSection(ProjectDependencies) = postProject
10+
{DB5DD76D-457C-42CF-8BF6-BA8214AD0404} = {DB5DD76D-457C-42CF-8BF6-BA8214AD0404}
11+
EndProjectSection
12+
EndProject
13+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DynamicClient", "DynamicClient\DynamicClient.csproj", "{325181F9-739B-414E-BE13-128881CD43B4}"
14+
EndProject
15+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TypedClient", "TypedClient\TypedClient.csproj", "{58FDE034-9434-4B4F-827F-839484C66695}"
16+
EndProject
17+
Global
18+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
19+
Debug|Any CPU = Debug|Any CPU
20+
Debug|x64 = Debug|x64
21+
Debug|x86 = Debug|x86
22+
Release|Any CPU = Release|Any CPU
23+
Release|x64 = Release|x64
24+
Release|x86 = Release|x86
25+
EndGlobalSection
26+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
27+
{DB5DD76D-457C-42CF-8BF6-BA8214AD0404}.Debug|Any CPU.ActiveCfg = Debug|x64
28+
{DB5DD76D-457C-42CF-8BF6-BA8214AD0404}.Debug|Any CPU.Build.0 = Debug|x64
29+
{DB5DD76D-457C-42CF-8BF6-BA8214AD0404}.Debug|x64.ActiveCfg = Debug|x64
30+
{DB5DD76D-457C-42CF-8BF6-BA8214AD0404}.Debug|x64.Build.0 = Debug|x64
31+
{DB5DD76D-457C-42CF-8BF6-BA8214AD0404}.Debug|x86.ActiveCfg = Debug|Win32
32+
{DB5DD76D-457C-42CF-8BF6-BA8214AD0404}.Debug|x86.Build.0 = Debug|Win32
33+
{DB5DD76D-457C-42CF-8BF6-BA8214AD0404}.Release|Any CPU.ActiveCfg = Release|x64
34+
{DB5DD76D-457C-42CF-8BF6-BA8214AD0404}.Release|Any CPU.Build.0 = Release|x64
35+
{DB5DD76D-457C-42CF-8BF6-BA8214AD0404}.Release|x64.ActiveCfg = Release|x64
36+
{DB5DD76D-457C-42CF-8BF6-BA8214AD0404}.Release|x64.Build.0 = Release|x64
37+
{DB5DD76D-457C-42CF-8BF6-BA8214AD0404}.Release|x86.ActiveCfg = Release|Win32
38+
{DB5DD76D-457C-42CF-8BF6-BA8214AD0404}.Release|x86.Build.0 = Release|Win32
39+
{68F88E50-E67B-444F-A5BC-E7D678ACE795}.Debug|Any CPU.ActiveCfg = Debug|x64
40+
{68F88E50-E67B-444F-A5BC-E7D678ACE795}.Debug|Any CPU.Build.0 = Debug|x64
41+
{68F88E50-E67B-444F-A5BC-E7D678ACE795}.Debug|x64.ActiveCfg = Debug|x64
42+
{68F88E50-E67B-444F-A5BC-E7D678ACE795}.Debug|x86.ActiveCfg = Debug|Win32
43+
{68F88E50-E67B-444F-A5BC-E7D678ACE795}.Release|Any CPU.ActiveCfg = Release|x64
44+
{68F88E50-E67B-444F-A5BC-E7D678ACE795}.Release|Any CPU.Build.0 = Release|x64
45+
{68F88E50-E67B-444F-A5BC-E7D678ACE795}.Release|x64.ActiveCfg = Release|x64
46+
{68F88E50-E67B-444F-A5BC-E7D678ACE795}.Release|x86.ActiveCfg = Release|Win32
47+
{325181F9-739B-414E-BE13-128881CD43B4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
48+
{325181F9-739B-414E-BE13-128881CD43B4}.Debug|Any CPU.Build.0 = Debug|Any CPU
49+
{325181F9-739B-414E-BE13-128881CD43B4}.Debug|x64.ActiveCfg = Debug|Any CPU
50+
{325181F9-739B-414E-BE13-128881CD43B4}.Debug|x64.Build.0 = Debug|Any CPU
51+
{325181F9-739B-414E-BE13-128881CD43B4}.Debug|x86.ActiveCfg = Debug|Any CPU
52+
{325181F9-739B-414E-BE13-128881CD43B4}.Debug|x86.Build.0 = Debug|Any CPU
53+
{325181F9-739B-414E-BE13-128881CD43B4}.Release|Any CPU.ActiveCfg = Release|Any CPU
54+
{325181F9-739B-414E-BE13-128881CD43B4}.Release|Any CPU.Build.0 = Release|Any CPU
55+
{325181F9-739B-414E-BE13-128881CD43B4}.Release|x64.ActiveCfg = Release|Any CPU
56+
{325181F9-739B-414E-BE13-128881CD43B4}.Release|x64.Build.0 = Release|Any CPU
57+
{325181F9-739B-414E-BE13-128881CD43B4}.Release|x86.ActiveCfg = Release|Any CPU
58+
{325181F9-739B-414E-BE13-128881CD43B4}.Release|x86.Build.0 = Release|Any CPU
59+
{58FDE034-9434-4B4F-827F-839484C66695}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
60+
{58FDE034-9434-4B4F-827F-839484C66695}.Debug|Any CPU.Build.0 = Debug|Any CPU
61+
{58FDE034-9434-4B4F-827F-839484C66695}.Debug|x64.ActiveCfg = Debug|Any CPU
62+
{58FDE034-9434-4B4F-827F-839484C66695}.Debug|x64.Build.0 = Debug|Any CPU
63+
{58FDE034-9434-4B4F-827F-839484C66695}.Debug|x86.ActiveCfg = Debug|Any CPU
64+
{58FDE034-9434-4B4F-827F-839484C66695}.Debug|x86.Build.0 = Debug|Any CPU
65+
{58FDE034-9434-4B4F-827F-839484C66695}.Release|Any CPU.ActiveCfg = Release|Any CPU
66+
{58FDE034-9434-4B4F-827F-839484C66695}.Release|Any CPU.Build.0 = Release|Any CPU
67+
{58FDE034-9434-4B4F-827F-839484C66695}.Release|x64.ActiveCfg = Release|Any CPU
68+
{58FDE034-9434-4B4F-827F-839484C66695}.Release|x64.Build.0 = Release|Any CPU
69+
{58FDE034-9434-4B4F-827F-839484C66695}.Release|x86.ActiveCfg = Release|Any CPU
70+
{58FDE034-9434-4B4F-827F-839484C66695}.Release|x86.Build.0 = Release|Any CPU
71+
EndGlobalSection
72+
GlobalSection(SolutionProperties) = preSolution
73+
HideSolutionNode = FALSE
74+
EndGlobalSection
75+
GlobalSection(ExtensibilityGlobals) = postSolution
76+
SolutionGuid = {3619B2D7-A946-4476-A48B-81BCF875E2E3}
77+
EndGlobalSection
78+
EndGlobal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
// COMCalculator.cpp : Implementation of DLL Exports.
2+
3+
4+
#include "pch.h"
5+
#include "framework.h"
6+
#include "resource.h"
7+
#include "COMCalculator_i.h"
8+
#include "dllmain.h"
9+
10+
11+
using namespace ATL;
12+
13+
// Used to determine whether the DLL can be unloaded by OLE.
14+
_Use_decl_annotations_
15+
STDAPI DllCanUnloadNow(void)
16+
{
17+
return _AtlModule.DllCanUnloadNow();
18+
}
19+
20+
// Returns a class factory to create an object of the requested type.
21+
_Use_decl_annotations_
22+
STDAPI DllGetClassObject(_In_ REFCLSID rclsid, _In_ REFIID riid, _Outptr_ LPVOID* ppv)
23+
{
24+
return _AtlModule.DllGetClassObject(rclsid, riid, ppv);
25+
}
26+
27+
// DllRegisterServer - Adds entries to the system registry.
28+
_Use_decl_annotations_
29+
STDAPI DllRegisterServer(void)
30+
{
31+
// registers object, typelib and all interfaces in typelib
32+
HRESULT hr = _AtlModule.DllRegisterServer();
33+
return hr;
34+
}
35+
36+
// DllUnregisterServer - Removes entries from the system registry.
37+
_Use_decl_annotations_
38+
STDAPI DllUnregisterServer(void)
39+
{
40+
HRESULT hr = _AtlModule.DllUnregisterServer();
41+
return hr;
42+
}
43+
44+
// DllInstall - Adds/Removes entries to the system registry per user per machine.
45+
STDAPI DllInstall(BOOL bInstall, _In_opt_ LPCWSTR pszCmdLine)
46+
{
47+
HRESULT hr = E_FAIL;
48+
static const wchar_t szUserSwitch[] = L"user";
49+
50+
if (pszCmdLine != nullptr)
51+
{
52+
if (_wcsnicmp(pszCmdLine, szUserSwitch, _countof(szUserSwitch)) == 0)
53+
{
54+
ATL::AtlSetPerUserRegistration(true);
55+
}
56+
}
57+
58+
if (bInstall)
59+
{
60+
hr = DllRegisterServer();
61+
if (FAILED(hr))
62+
{
63+
DllUnregisterServer();
64+
}
65+
}
66+
else
67+
{
68+
hr = DllUnregisterServer();
69+
}
70+
71+
return hr;
72+
}
73+
74+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
; COMCalculator.def : Declares the module parameters.
2+
3+
LIBRARY
4+
5+
EXPORTS
6+
DllCanUnloadNow PRIVATE
7+
DllGetClassObject PRIVATE
8+
DllRegisterServer PRIVATE
9+
DllUnregisterServer PRIVATE
10+
DllInstall PRIVATE
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// COMCalculator.idl : IDL source for COMCalculator
2+
//
3+
4+
// This file will be processed by the MIDL tool to
5+
// produce the type library (COMCalculator.tlb) and marshalling code.
6+
7+
import "oaidl.idl";
8+
import "ocidl.idl";
9+
10+
[
11+
object,
12+
uuid(ac36563a-4a78-4e7d-8711-ba80de80c077),
13+
dual,
14+
nonextensible,
15+
pointer_default(unique)
16+
]
17+
interface ICalculator : IDispatch
18+
{
19+
[id(1)] HRESULT Add([in] LONG x, [in] LONG y, [out, retval] LONG* presult);
20+
[id(2)] HRESULT Subtract([in] LONG x, [in] LONG y, [out, retval] LONG* presult);
21+
};
22+
[
23+
uuid(f08d76e8-32c4-4895-b49c-a3b11389f7c1),
24+
version(1.0),
25+
]
26+
library COMCalculatorLib
27+
{
28+
importlib("stdole2.tlb");
29+
[
30+
uuid(9a16b020-6ec0-4ad2-8b09-3914c2a40b0a)
31+
]
32+
coclass Calculator
33+
{
34+
[default] interface ICalculator;
35+
};
36+
};
37+
38+
import "shobjidl.idl";
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
HKCR
2+
{
3+
}

0 commit comments

Comments
 (0)