Error in code example

Aperta
#1,193 3 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

@adegeo ci sta già lavorando.

Dal 28/10/2021.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

doc-bug dotnet-framework/svc okr-health okr-quality Pri2 wpf/subsvc
Type of issue

Other (describe below)

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.

Page URL

https://learn.microsoft.com/en-us/dotnet/desktop/wpf/advanced/walkthrough-hosting-an-activex-control-in-wpf

Content source URL

https://github.com/dotnet/docs-desktop/blob/main/dotnet-desktop-guide/wpf/advanced/walkthrough-hosting-an-activex-control-in-wpf.md

Document Version Independent Id

80d1e579-7811-cc70-90a6-04d1954ed61b

Article author

adegeo

Metadata
  • ID: 80d1e579-7811-cc70-90a6-04d1954ed61b
  • Service: dotnet-framework
  • Sub-service: wpf
Lingua principale
C#
Stelle
241
Fork
192
Merge medio
10h 23m
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di dotnet/docs-desktop

Tutte le issue di dotnet/docs-desktop

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.