ms-help://MS.MSDNQTR.v90.chs/wmencode/htm/programmingincpp.htm
Programming in C++
This topic describes what you should know when programming in C++. Unless otherwise noted, the examples in this documentation are written in Microsoft Visual C++® 6.0.
When programming in C++, you must add the necessary header files to your project. The following header files are provided with the Windows Media Encoder SDK.
Header file | Description |
localagent.h | Includes interfaces that enable remote administration of Windows Media Encoder applications. |
mspropshell.h | Includes interfaces that enable you to implement dialog boxes containing the predefined property pages. |
wmdevctl.h | Includes interfaces for controlling digital devices. |
wmdrmprf.h | Includes interfaces for protecting content with DRM. |
wmencode.h | Includes interfaces that configure and run Windows Media Encoder applications. |
wmencvu.h | Includes an interface that can be used to create and run a preview of a stream. |
wmsencid.h | Includes a complete set of DISPID definitions. |
Instead of including the wmencode.h and mspropshell.h header files, you can import the corresponding type libraries to generate wrapper classes that simplify implementation of the related COM interfaces:
#import "WMEnc.exe"
#import "MSPShell.dll"
ms-help://MS.MSDNQTR.v90.chs/wmencode/htm/programmingincsharp.htm
Programming in C#
This topic describes what you should know when programming in Microsoft C#.
Note In each C# project you must add references to the Windows Media Encoder SDK type libraries.
To add Windows Media Encoder SDK references to a C# project
- On the Project menu, click Add Reference, and then click the COM tab.
- Select the references you need for your application, as described in the following table, and then click the Select button.
Reference Description Windows Media Encoder Required for all Windows Media Encoder applications. Windows Media Encoder Agent Required for applications that enable remote administration. Windows Media Encoder Agent Locator Required for applications that enable remote administration. Windows Media Encoder Device Control Required for applications that control an external digital device. Windows Media Encoder Preview Control Required for applications that display a window to preview input sources. Windows Media Encoder Time Compression Plug-in Required for applications that use the time compression plug-in. To use the MSPropShell ActiveX control
- On the View menu, click Toolbox.
- In the Toolbox, right-click in the Components section, and then click Customize Toolbox.
- On the COM Components tab, click MS PropShell Ctrl Class.