Visual Studio를 사용하여 샘플 서비스 공급자 컴파일
Windows Media Format SDK에는 Visual Studio 솔루션 파일이 포함되어 있지 않습니다. 그러나 이 문서에는 Visual Studio를 사용하여 샘플 서비스 공급자를 빌드하고 디버그할 수 있는 두 개의 파일이 포함되어 있습니다. 제공된 두 파일은 모두 Visual Studio .NET 2003용입니다.
- 다음 코드를 mshdsp.vcproj라는 텍스트 파일로 SDK 설치 경로>\WMFSDK\WMFSDK95\WMDM\mdsp\mshdsp 폴더 < 에 저장합니다.
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="7.10"
Name="mshdsp"
ProjectGUID="{B0BD0EEB-2048-46E2-ADCB-DA058B246F5E}"
Keyword="AtlProj">
<Platforms>
<Platform
Name="Win32"/>
</Platforms>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="Debug"
IntermediateDirectory="Debug"
ConfigurationType="2"
UseOfATL="1"
ATLMinimizesCRunTimeLibraryUsage="FALSE"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\..\inc"
PreprocessorDefinitions="WIN32;_WINDOWS;_DEBUG;_USRDLL;_ATL_ATTRIBUTES;ATL_STATIC_REGISTRY;INC_OLE2;"
MinimalRebuild="TRUE"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="4"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
IgnoreImportLibrary="TRUE"
AdditionalOptions="/FIXED:NO"
AdditionalDependencies="advapi32.lib gdi32.lib kernel32.lib ole32.lib oleaut32.lib olepro32.lib user32.lib uuid.lib mssachlp.lib oldnames.lib shell32.lib atlsd.lib shlwapi.lib msvcrtd.lib"
OutputFile="$(OutDir)/mshdsp.dll"
LinkIncremental="2"
AdditionalLibraryDirectories="..\..\lib"
IgnoreAllDefaultLibraries="TRUE"
ModuleDefinitionFile="MsHDSP.def"
MergedIDLBaseFileName="_mshdsp.idl"
GenerateDebugInformation="TRUE"
SubSystem="2"
OptimizeReferences="1"
ImportLibrary="$(OutDir)/mshdsp.lib"
TargetMachine="1"/>
<Tool
Name="VCMIDLTool"
PreprocessorDefinitions="_DEBUG;UNICODE;_UNICODE"
MkTypLibCompatible="FALSE"
TargetEnvironment="1"
GenerateStublessProxies="TRUE"
TypeLibraryName="$(IntDir)/mshdsp.tlb"
HeaderFileName="mshdsp.h"
DLLDataFileName=""
InterfaceIdentifierFileName="mshdsp_i.c"
ProxyFileName="mshdsp_p.c"/>
<Tool
Name="VCPostBuildEventTool"
Description="Performing registration"
CommandLine="regsvr32 /s /c "$(TargetPath)""/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="_DEBUG"
Culture="1033"
AdditionalIncludeDirectories="$(IntDir)"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="Release"
IntermediateDirectory="Release"
ConfigurationType="2"
UseOfATL="1"
ATLMinimizesCRunTimeLibraryUsage="FALSE"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
PreprocessorDefinitions="WIN32;_WINDOWS;NDEBUG;_USRDLL;_ATL_ATTRIBUTES"
RuntimeLibrary="2"
UsePrecompiledHeader="3"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="3"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
IgnoreImportLibrary="TRUE"
OutputFile="$(OutDir)/mshdsp.dll"
LinkIncremental="1"
MergedIDLBaseFileName="_mshdsp.idl"
GenerateDebugInformation="TRUE"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"
ImportLibrary="$(OutDir)/mshdsp.lib"
TargetMachine="1"/>
<Tool
Name="VCMIDLTool"
PreprocessorDefinitions="NDEBUG"
MkTypLibCompatible="FALSE"
TargetEnvironment="1"
GenerateStublessProxies="TRUE"
TypeLibraryName="$(IntDir)/mshdsp.tlb"
HeaderFileName="mshdsp.h"
DLLDataFileName=""
InterfaceIdentifierFileName="mshdsp_i.c"
ProxyFileName="mshdsp_p.c"/>
<Tool
Name="VCPostBuildEventTool"
Description="Performing registration"
CommandLine="regsvr32 /s /c "$(TargetPath)""/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="NDEBUG"
Culture="1033"
AdditionalIncludeDirectories="$(IntDir)"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}">
<File
RelativePath=".\hdsppch.cpp">
</File>
<File
RelativePath=".\key.c">
</File>
<File
RelativePath=".\loghelp.cpp">
</File>
<File
RelativePath=".\MDServiceProvider.cpp">
</File>
<File
RelativePath=".\Mdsp.cpp">
</File>
<File
RelativePath=".\MDSPDevice.cpp">
</File>
<File
RelativePath=".\MDSPEnumDevice.cpp">
</File>
<File
RelativePath=".\MDSPEnumStorage.cpp">
</File>
<File
RelativePath=".\MDSPStorage.cpp">
</File>
<File
RelativePath=".\MDSPStorageGlobals.cpp">
</File>
<File
RelativePath=".\MDSPutil.cpp">
</File>
<File
RelativePath=".\MsHDSP.def">
</File>
<File
RelativePath=".\MsHDSP.idl">
</File>
<File
RelativePath=".\proppage.cpp">
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}">
<File
RelativePath=".\hdsppch.h">
</File>
<File
RelativePath=".\hdsprc.h">
</File>
<File
RelativePath=".\loghelp.h">
</File>
<File
RelativePath=".\MDServiceProvider.h">
</File>
<File
RelativePath=".\MdspDefs.h">
</File>
<File
RelativePath=".\MDSPDevice.h">
</File>
<File
RelativePath=".\MDSPEnumDevice.h">
</File>
<File
RelativePath=".\MDSPEnumStorage.h">
</File>
<File
RelativePath=".\MDSPStorage.h">
</File>
<File
RelativePath=".\MDSPStorageGlobals.h">
</File>
<File
RelativePath=".\proppage.h">
</File>
<File
RelativePath=".\verinfo.h">
</File>
</Filter>
<Filter
Name="Resource Files"
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
<File
RelativePath=".\icon_hd.ico">
</File>
<File
RelativePath=".\MDServiceProvider.rgs">
</File>
<File
RelativePath=".\mdsp.rc">
</File>
<File
RelativePath=".\proppage.rgs">
</File>
</Filter>
<File
RelativePath=".\Makefile">
</File>
<File
RelativePath=".\mshdsp.ncb">
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
- mshdsp.vcproj를 저장한 동일한 폴더에 mshdsp.sln이라는 텍스트 파일로 다음 코드를 저장합니다.
Microsoft Visual Studio Solution File, Format Version 8.00
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mshdsp", "mshdsp.vcproj", "{B0BD0EEB-2048-46E2-ADCB-DA058B246F5E}"
ProjectSection(ProjectDependencies) = postProject
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfiguration) = preSolution
Debug = Debug
Release = Release
EndGlobalSection
GlobalSection(ProjectConfiguration) = postSolution
{B0BD0EEB-2048-46E2-ADCB-DA058B246F5E}.Debug.ActiveCfg = Debug|Win32
{B0BD0EEB-2048-46E2-ADCB-DA058B246F5E}.Debug.Build.0 = Debug|Win32
{B0BD0EEB-2048-46E2-ADCB-DA058B246F5E}.Release.ActiveCfg = Release|Win32
{B0BD0EEB-2048-46E2-ADCB-DA058B246F5E}.Release.Build.0 = Release|Win32
{C82A4AF9-14FD-474E-AD38-6EED4A0C0903}.Debug.ActiveCfg = Debug|Win32
{C82A4AF9-14FD-474E-AD38-6EED4A0C0903}.Release.ActiveCfg = Release|Win32
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
EndGlobalSection
GlobalSection(ExtensibilityAddIns) = postSolution
EndGlobalSection
EndGlobal
관련 항목
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기