Open
Description
The code example on step 9 of the To host the ActiveX control section has an error.
The line:
WmpAxLib.AxWindowsMediaPlayer axWmp = new WmpAxLib.AxWindowsMediaPlayer();
Should be:
AxWMPLib.AxWindowsMediaPlayer axWmp = new AxWMPLib.AxWindowsMediaPlayer();
At least I had to make that change or the above type would not resolve.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 4fe2b9b7-4cd7-2612-cb44-68d693054967
- Version Independent ID: 0a933a7e-abcc-64db-5497-8bfc3f00865c
- Content: Host an ActiveX control in WPF
- Content Source: dotnet-desktop-guide/framework/wpf/advanced/walkthrough-hosting-an-activex-control-in-wpf.md
- Product: dotnet-framework
- Technology: dotnet-wpf
- GitHub Login: @adegeo
- Microsoft Alias: adegeo