Click here to Skip to main content
15,884,425 members
Articles / Desktop Programming / WTL

Device Information

Rate me:
Please Sign up or sign in to vote.
4.91/5 (11 votes)
13 Dec 2008CPOL6 min read 113.8K   12.9K   69  
Use two C++ classes which wrap various setup API calls to obtain, filter and display device names and information
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
	ProjectType="Visual C++"
	Version="8.00"
	Name="ListViewTest"
	ProjectGUID="{74BED471-1F9B-46EF-9278-938CF84BAFA9}"
	RootNamespace="ListViewTest"
	>
	<Platforms>
		<Platform
			Name="Win32"
		/>
	</Platforms>
	<ToolFiles>
	</ToolFiles>
	<Configurations>
		<Configuration
			Name="Debug|Win32"
			OutputDirectory="Debug"
			IntermediateDirectory="Debug"
			ConfigurationType="1"
			UseOfATL="1"
			ATLMinimizesCRunTimeLibraryUsage="false"
			CharacterSet="1"
			>
			<Tool
				Name="VCPreBuildEventTool"
			/>
			<Tool
				Name="VCCustomBuildTool"
			/>
			<Tool
				Name="VCXMLDataGeneratorTool"
			/>
			<Tool
				Name="VCWebServiceProxyGeneratorTool"
			/>
			<Tool
				Name="VCMIDLTool"
				PreprocessorDefinitions="_DEBUG"
				MkTypLibCompatible="false"
				TargetEnvironment="1"
				GenerateStublessProxies="true"
				TypeLibraryName="$(IntDir)/ListViewTest.tlb"
				HeaderFileName="ListViewTest.h"
				DLLDataFileName=""
				InterfaceIdentifierFileName="ListViewTest_i.c"
				ProxyFileName="ListViewTest_p.c"
			/>
			<Tool
				Name="VCCLCompilerTool"
				Optimization="0"
				PreprocessorDefinitions="WIN32;_WINDOWS;STRICT;_DEBUG"
				MinimalRebuild="true"
				BasicRuntimeChecks="3"
				RuntimeLibrary="1"
				UsePrecompiledHeader="2"
				WarningLevel="3"
				DebugInformationFormat="4"
			/>
			<Tool
				Name="VCManagedResourceCompilerTool"
			/>
			<Tool
				Name="VCResourceCompilerTool"
				PreprocessorDefinitions="_DEBUG"
				Culture="1033"
				AdditionalIncludeDirectories="$(IntDir)"
			/>
			<Tool
				Name="VCPreLinkEventTool"
			/>
			<Tool
				Name="VCLinkerTool"
				LinkIncremental="2"
				GenerateDebugInformation="true"
				SubSystem="2"
				TargetMachine="1"
			/>
			<Tool
				Name="VCALinkTool"
			/>
			<Tool
				Name="VCManifestTool"
			/>
			<Tool
				Name="VCXDCMakeTool"
			/>
			<Tool
				Name="VCBscMakeTool"
			/>
			<Tool
				Name="VCFxCopTool"
			/>
			<Tool
				Name="VCAppVerifierTool"
			/>
			<Tool
				Name="VCWebDeploymentTool"
			/>
			<Tool
				Name="VCPostBuildEventTool"
			/>
		</Configuration>
		<Configuration
			Name="Release|Win32"
			OutputDirectory="Release"
			IntermediateDirectory="Release"
			ConfigurationType="1"
			UseOfATL="1"
			ATLMinimizesCRunTimeLibraryUsage="false"
			CharacterSet="1"
			>
			<Tool
				Name="VCPreBuildEventTool"
			/>
			<Tool
				Name="VCCustomBuildTool"
			/>
			<Tool
				Name="VCXMLDataGeneratorTool"
			/>
			<Tool
				Name="VCWebServiceProxyGeneratorTool"
			/>
			<Tool
				Name="VCMIDLTool"
				PreprocessorDefinitions="NDEBUG"
				MkTypLibCompatible="false"
				TargetEnvironment="1"
				GenerateStublessProxies="true"
				TypeLibraryName="$(IntDir)/ListViewTest.tlb"
				HeaderFileName="ListViewTest.h"
				DLLDataFileName=""
				InterfaceIdentifierFileName="ListViewTest_i.c"
				ProxyFileName="ListViewTest_p.c"
			/>
			<Tool
				Name="VCCLCompilerTool"
				PreprocessorDefinitions="WIN32;_WINDOWS;STRICT;NDEBUG"
				ExceptionHandling="1"
				RuntimeLibrary="0"
				UsePrecompiledHeader="2"
				WarningLevel="3"
				DebugInformationFormat="0"
			/>
			<Tool
				Name="VCManagedResourceCompilerTool"
			/>
			<Tool
				Name="VCResourceCompilerTool"
				PreprocessorDefinitions="NDEBUG"
				Culture="1033"
				AdditionalIncludeDirectories="$(IntDir)"
			/>
			<Tool
				Name="VCPreLinkEventTool"
			/>
			<Tool
				Name="VCLinkerTool"
				LinkIncremental="1"
				SubSystem="2"
				TargetMachine="1"
			/>
			<Tool
				Name="VCALinkTool"
			/>
			<Tool
				Name="VCManifestTool"
			/>
			<Tool
				Name="VCXDCMakeTool"
			/>
			<Tool
				Name="VCBscMakeTool"
			/>
			<Tool
				Name="VCFxCopTool"
			/>
			<Tool
				Name="VCAppVerifierTool"
			/>
			<Tool
				Name="VCWebDeploymentTool"
			/>
			<Tool
				Name="VCPostBuildEventTool"
			/>
		</Configuration>
	</Configurations>
	<References>
	</References>
	<Files>
		<Filter
			Name="Source Files"
			Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm"
			>
			<File
				RelativePath=".\ListViewTest.cpp"
				>
			</File>
			<File
				RelativePath=".\stdafx.cpp"
				>
				<FileConfiguration
					Name="Debug|Win32"
					>
					<Tool
						Name="VCCLCompilerTool"
						UsePrecompiledHeader="1"
					/>
				</FileConfiguration>
				<FileConfiguration
					Name="Release|Win32"
					>
					<Tool
						Name="VCCLCompilerTool"
						UsePrecompiledHeader="1"
					/>
				</FileConfiguration>
			</File>
		</Filter>
		<Filter
			Name="Header Files"
			Filter="h;hpp;hxx;hm;inl;inc"
			>
			<File
				RelativePath=".\AboutDlg.h"
				>
			</File>
			<File
				RelativePath="..\CommandError.h"
				>
			</File>
			<File
				RelativePath="..\DeviceImages.h"
				>
			</File>
			<File
				RelativePath="..\DeviceInfo.h"
				>
			</File>
			<File
				RelativePath=".\MainDlg.h"
				>
			</File>
			<File
				RelativePath=".\resource.h"
				>
			</File>
			<File
				RelativePath=".\stdafx.h"
				>
			</File>
		</Filter>
		<Filter
			Name="Resource Files"
			Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;jpg;jpeg;jpe;manifest"
			>
			<File
				RelativePath=".\res\ListViewTest.ico"
				>
			</File>
			<File
				RelativePath=".\ListViewTest.rc"
				>
			</File>
		</Filter>
	</Files>
	<Globals>
		<Global
			Name="RESOURCE_FILE"
			Value="ListViewTest.rc"
		/>
	</Globals>
</VisualStudioProject>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Founder JGD Projects Ltd
United Kingdom United Kingdom
May 2013: Project Management distance-learning MSc completed. I looked at graphical languages in manufacturing projects. In 2011 I was modelling part and data flow through a new casting facility planned for the UK working with software from their Software Centre of Excellence. In 2012 I was project managing a part identification system to go inside the factory, mostly using data matrices: inkjetted, laser printed and dot peened.

The need to find some software design tools first led me to Object Orientated Analysis and Design (OOA and OOD) and then to the Unified Modelling Language (UML) with Rational Rose in 2002.

Having been asked to write Windows image-processing s/w for new Bacterial Colony Picking robots for use on the Human Genome Project in 2000 I turned to C++.

I then got introduced to COM by Dale Rogerson’s ‘Inside COM’. My first COM objects used MFC but I soon moved onto the Active Template Library (ATL), Windows Template Library (WTL) and Standard template Library (STL).

Whilst my software design targets have now expanded from ‘control’ into domains such as Windows, firmware and communications design, the more general Project Management route I’ve taken has brought me into areas where I can happily deal with corporate management and clients directly.

This move has, it seems, completed a circle. I’m now able to manage the technical aspects of multi-discipline projects whilst working with clients, suppliers and anyone else needed to keep a project on track and to use techniques such as value management to ensure that any code written by the team is code that the client wants and appreciates.

Along the way I’ve become a Chartered Engineer and a Member of both the IET, and the Association for Project and have just joined INCOSE UK.

Comments and Discussions