VB app dynamically loads a native DLL (VBLoadLibrary)

This VB sample demonstrates dynamically load a native DLL by P/Invoking LoadLibrary, and invoke its exported functions

 
 
 
 
 
4.3 Star
(4)
9,409 times
Add to favorites
8/22/2012
E-mail Twitter del.icio.us Digg Facebook
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Documentation", "Documentation", "{D9900D98-D95B-49DE-8923-3CCF27DDA583}"
	ProjectSection(SolutionItems) = preProject
		VBLoadLibrary\Documentation\ReadMe.htm = VBLoadLibrary\Documentation\ReadMe.htm
	EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ReadMe_files", "ReadMe_files", "{88644E43-FD2A-4E66-B4D1-CC71A95F4A03}"
	ProjectSection(SolutionItems) = preProject
		VBLoadLibrary\Documentation\ReadMe_files\colorschememapping.xml = VBLoadLibrary\Documentation\ReadMe_files\colorschememapping.xml
		VBLoadLibrary\Documentation\ReadMe_files\filelist.xml = VBLoadLibrary\Documentation\ReadMe_files\filelist.xml
		VBLoadLibrary\Documentation\ReadMe_files\themedata.thmx = VBLoadLibrary\Documentation\ReadMe_files\themedata.thmx
	EndProjectSection
EndProject
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "VBLoadLibrary", "VBLoadLibrary\VBLoadLibrary\VBLoadLibrary.vbproj", "{7BA2E535-A272-4A74-9577-D86E908D3F97}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CppDynamicLinkLibrary", "VBLoadLibrary\CppDynamicLinkLibrary\CppDynamicLinkLibrary.vcproj", "{52E95A78-6446-49D8-8F79-31846518D34B}"
EndProject
Global
	
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Win32 = Debug|Win32
		Debug|x64 = Debug|x64
		Debug|x86 = Debug|x86
		Release|Win32 = Release|Win32
		Release|x64 = Release|x64
		Release|x86 = Release|x86
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{7BA2E535-A272-4A74-9577-D86E908D3F97}.Debug|Win32.ActiveCfg = Debug|x64
		{7BA2E535-A272-4A74-9577-D86E908D3F97}.Debug|x64.ActiveCfg = Debug|x64
		{7BA2E535-A272-4A74-9577-D86E908D3F97}.Debug|x64.Build.0 = Debug|x64
		{7BA2E535-A272-4A74-9577-D86E908D3F97}.Debug|x86.ActiveCfg = Debug|x86
		{7BA2E535-A272-4A74-9577-D86E908D3F97}.Debug|x86.Build.0 = Debug|x86
		{7BA2E535-A272-4A74-9577-D86E908D3F97}.Release|Win32.ActiveCfg = Release|x64
		{7BA2E535-A272-4A74-9577-D86E908D3F97}.Release|x64.ActiveCfg = Release|x64
		{7BA2E535-A272-4A74-9577-D86E908D3F97}.Release|x64.Build.0 = Release|x64
		{7BA2E535-A272-4A74-9577-D86E908D3F97}.Release|x86.ActiveCfg = Release|x86
		{7BA2E535-A272-4A74-9577-D86E908D3F97}.Release|x86.Build.0 = Release|x86
		{52E95A78-6446-49D8-8F79-31846518D34B}.Debug|Win32.ActiveCfg = Debug|Win32
		{52E95A78-6446-49D8-8F79-31846518D34B}.Debug|Win32.Build.0 = Debug|Win32
		{52E95A78-6446-49D8-8F79-31846518D34B}.Debug|x64.ActiveCfg = Debug|x64
		{52E95A78-6446-49D8-8F79-31846518D34B}.Debug|x64.Build.0 = Debug|x64
		{52E95A78-6446-49D8-8F79-31846518D34B}.Debug|x86.ActiveCfg = Debug|x64
		{52E95A78-6446-49D8-8F79-31846518D34B}.Release|Win32.ActiveCfg = Release|Win32
		{52E95A78-6446-49D8-8F79-31846518D34B}.Release|Win32.Build.0 = Release|Win32
		{52E95A78-6446-49D8-8F79-31846518D34B}.Release|x64.ActiveCfg = Release|x64
		{52E95A78-6446-49D8-8F79-31846518D34B}.Release|x64.Build.0 = Release|x64
		{52E95A78-6446-49D8-8F79-31846518D34B}.Release|x86.ActiveCfg = Release|x64
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
	GlobalSection(NestedProjects) = preSolution
		{88644E43-FD2A-4E66-B4D1-CC71A95F4A03} = {D9900D98-D95B-49DE-8923-3CCF27DDA583}
	EndGlobalSection
EndGlobal