DMO
Player Experience Summary
Operating System:
Window XP
IDE
:
Vs2005
1
Install
DirectX 9.0 SDK
1.1
Download
DirectX
9.0 SDK
Player is mainly used
DirectX
In
DirectShow API
And Microsoft's latest
DirectX SDK
Already
DirectShow
To
Extras
And later integrated a part
SDK
To
Windows SDK
, That is, the subsequent environment (such
Vs2005
,
Vs2008
Environment. So it is best to use the following
SDK
The installation package (found online, thanks to the user who shared the resources, I did not find a suitable one on the official website
SDK
):
DirectX 9.0 SDK
:
Http://cid-a76c4a4a3032ded0.skydrive.live.com/browse.aspx/.Public/DirectX%209.0%20SDK
1.2
Install
Download
SDK
Decompress the tool (for example
Dx9sdk_setup
Directory), double-click
Microsoft DirectX 9.0 SDK. MSI
, Installation directory
C:/dxsdk
And install it all the way by default.
1.3
Compile
Baseclasses
Open
C:/dxsdk/samples/C ++/DirectShow/baseclasses. sln
, In
Vs2005
Open this file, prompting you to perform the necessary engineering conversion, even if the conversion is fine.
Some configuration and tools are required before compilation.
->
Option
->
Projects and Solutions
-> VC ++
Directory to set environment variables:
○
Include files:
C:/dxsdk/include
C:/dxsdk/samples/C ++/DirectShow/baseclasses
C:/dxsdk/samples/C ++/DirectShow/common
C:/dxsdk/samples/C ++/common/include
Some errors will be reported during compilation:
○
C:/Program
Files/Microsoft Visual Studio 8/VC/platformsdk/include/winnt. H (222): Error
C2146: syntax error: Missing '; 'before identifier' pvoid64'
Solution
: You are
Winnt. h
Add definition on
# Define pointer_64 _ ptr64
But it seems that the solution is not appropriate, but it is difficult to find a more appropriate solution.
○
Error c4430: Missing type
Specifier-int assumed. Note: C ++ does not support default-int
Error c4430:
The type specifier is missing.
-
Assume that
Int
. Note:
: C ++
Not supported by default
Int
.
Analysis
: The error occurs in:
Operator = (long );
In this statement, this is because
Vc6
If the specified return value type is not displayed, the compiler treats it as the default integer.
Vs2005
Default integer is not supported.
Solution
:
Method 1
: To solve this problem, you cannot modify each function that does not display a function indicating the return value type. You can use
Wd4430
In the project options.
C ++/command line
Add
/Wd4430
.
Method 2
: Directly add
Operator = (long );
Statement change
Long operator = (long );
○
Error c2065: 'Count ':
Undeclared identifier
Analysis
: This error occurs in
For
Loop,
Vc6
Medium
For
The variable defined in the loop is equivalent
For
It can be defined in
For
Used outside of China; however
Vs2005
Of
For
Defining variables in a loop is equivalent to a field
{}
Variable, only in
For
Loop.
Solution
: To solve this problem, you can modify
Vs2005
Project Options:
"Project option"-> "C ++"-> "language"-> "Force
Comformance in for loop scrope"
Set
No
.
Complete the preceding settings,
Baseclasses
The project can be compiled, and then compiled separately.
Debug
And
Release
Two versions.
Configure the "library file" environment variable (
Tools
->
Option
->
Projects and Solutions
-> VC ++
Directory
):
C:/dxsdk/lib
C:/dxsdk/samples/C ++/DirectShow/baseclasses/debug
C:/dxsdk/samples/C ++/DirectShow/baseclasses/release
So far,
DirectShow
The program can be compiled.
2
Install tranquility Decoding
Windows XP
Only a few audio and video formats are supported in the operating system. After the decoder is installed, most audio and video formats are supported.
3
DMO
Player
To
Dxsdk
In
DMO
Program (
C:/dxsdk/samples/C ++/DirectShow/players/playdmo
) To learn how to compile
DMO
Player.