C++ app hosts CLR 4 and invokes .NET assembly (CppHostCLR)

The code sample uses the CLR 4 hosting APIs to host CLR in a native C++ project, load and invoke .NET assemblies

 
 
 
 
 
4.8 Star
(6)
17,652 times
Add to favorites
6/11/2012
E-mail Twitter del.icio.us Digg Facebook
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CppHostCLR", "CppHostCLR\CppHostCLR\CppHostCLR.vcxproj", "{1FAD019A-F1F1-456A-8588-89F01454DB0C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CSClassLibrary", "CppHostCLR\CSClassLibrary\CSClassLibrary.csproj", "{337AB2D8-D40E-4816-A403-FD2D0C760D15}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CSNET2ClassLibrary", "CppHostCLR\CSNET2ClassLibrary\CSNET2ClassLibrary.csproj", "{CCA547C4-57A1-4A5C-BEEC-6E78F5A40E46}"
EndProject
Global
	
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Debug|Mixed Platforms = Debug|Mixed Platforms
		Debug|Win32 = Debug|Win32
		Debug|x64 = Debug|x64
		Release|Any CPU = Release|Any CPU
		Release|Mixed Platforms = Release|Mixed Platforms
		Release|Win32 = Release|Win32
		Release|x64 = Release|x64
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{1FAD019A-F1F1-456A-8588-89F01454DB0C}.Debug|Any CPU.ActiveCfg = Debug|Win32
		{1FAD019A-F1F1-456A-8588-89F01454DB0C}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
		{1FAD019A-F1F1-456A-8588-89F01454DB0C}.Debug|Mixed Platforms.Build.0 = Debug|Win32
		{1FAD019A-F1F1-456A-8588-89F01454DB0C}.Debug|Win32.ActiveCfg = Debug|Win32
		{1FAD019A-F1F1-456A-8588-89F01454DB0C}.Debug|Win32.Build.0 = Debug|Win32
		{1FAD019A-F1F1-456A-8588-89F01454DB0C}.Debug|x64.ActiveCfg = Debug|x64
		{1FAD019A-F1F1-456A-8588-89F01454DB0C}.Debug|x64.Build.0 = Debug|x64
		{1FAD019A-F1F1-456A-8588-89F01454DB0C}.Release|Any CPU.ActiveCfg = Release|Win32
		{1FAD019A-F1F1-456A-8588-89F01454DB0C}.Release|Mixed Platforms.ActiveCfg = Release|Win32
		{1FAD019A-F1F1-456A-8588-89F01454DB0C}.Release|Mixed Platforms.Build.0 = Release|Win32
		{1FAD019A-F1F1-456A-8588-89F01454DB0C}.Release|Win32.ActiveCfg = Release|Win32
		{1FAD019A-F1F1-456A-8588-89F01454DB0C}.Release|Win32.Build.0 = Release|Win32
		{1FAD019A-F1F1-456A-8588-89F01454DB0C}.Release|x64.ActiveCfg = Release|x64
		{337AB2D8-D40E-4816-A403-FD2D0C760D15}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{337AB2D8-D40E-4816-A403-FD2D0C760D15}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{337AB2D8-D40E-4816-A403-FD2D0C760D15}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
		{337AB2D8-D40E-4816-A403-FD2D0C760D15}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
		{337AB2D8-D40E-4816-A403-FD2D0C760D15}.Debug|Win32.ActiveCfg = Debug|Any CPU
		{337AB2D8-D40E-4816-A403-FD2D0C760D15}.Debug|x64.ActiveCfg = Debug|x64
		{337AB2D8-D40E-4816-A403-FD2D0C760D15}.Debug|x64.Build.0 = Debug|x64
		{337AB2D8-D40E-4816-A403-FD2D0C760D15}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{337AB2D8-D40E-4816-A403-FD2D0C760D15}.Release|Any CPU.Build.0 = Release|Any CPU
		{337AB2D8-D40E-4816-A403-FD2D0C760D15}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
		{337AB2D8-D40E-4816-A403-FD2D0C760D15}.Release|Mixed Platforms.Build.0 = Release|Any CPU
		{337AB2D8-D40E-4816-A403-FD2D0C760D15}.Release|Win32.ActiveCfg = Release|Any CPU
		{337AB2D8-D40E-4816-A403-FD2D0C760D15}.Release|x64.ActiveCfg = Release|x64
		{337AB2D8-D40E-4816-A403-FD2D0C760D15}.Release|x64.Build.0 = Release|x64
		{CCA547C4-57A1-4A5C-BEEC-6E78F5A40E46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{CCA547C4-57A1-4A5C-BEEC-6E78F5A40E46}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{CCA547C4-57A1-4A5C-BEEC-6E78F5A40E46}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
		{CCA547C4-57A1-4A5C-BEEC-6E78F5A40E46}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
		{CCA547C4-57A1-4A5C-BEEC-6E78F5A40E46}.Debug|Win32.ActiveCfg = Debug|Any CPU
		{CCA547C4-57A1-4A5C-BEEC-6E78F5A40E46}.Debug|x64.ActiveCfg = Debug|x64
		{CCA547C4-57A1-4A5C-BEEC-6E78F5A40E46}.Debug|x64.Build.0 = Debug|x64
		{CCA547C4-57A1-4A5C-BEEC-6E78F5A40E46}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{CCA547C4-57A1-4A5C-BEEC-6E78F5A40E46}.Release|Any CPU.Build.0 = Release|Any CPU
		{CCA547C4-57A1-4A5C-BEEC-6E78F5A40E46}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
		{CCA547C4-57A1-4A5C-BEEC-6E78F5A40E46}.Release|Mixed Platforms.Build.0 = Release|Any CPU
		{CCA547C4-57A1-4A5C-BEEC-6E78F5A40E46}.Release|Win32.ActiveCfg = Release|Any CPU
		{CCA547C4-57A1-4A5C-BEEC-6E78F5A40E46}.Release|x64.ActiveCfg = Release|x64
		{CCA547C4-57A1-4A5C-BEEC-6E78F5A40E46}.Release|x64.Build.0 = Release|x64
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal