How to use the WMPLib library in VB.NET

0

Hi, I'm trying to use the WMPLib library, but I can not use it. I compile my project, and it always returns the same error:

Photo:

I included the library with:

Imports WMPLib
Dim Player As WindowsMediaPlayer = New WindowsMediaPlayer

I think maybe it's the dll, that I have to try another, so I started searching but I can not find it. Does anyone know how I can use this library to put sound in applications?

Error:

Gravedad    Código  Descripción Proyecto    Archivo Línea   Estado de supresión
Error   BC30002 No está definido el tipo 'WindowsMediaPlayer'.  C:\Users\Androide\Desktop\Scratch-master\Scratch-master\Form1.vb   7   Activa
    
asked by Sergio Ramos 10.06.2017 в 20:13
source

1 answer

0

The Ace of Adding by Reference to the Project and Importing it into your project and that is done through the menu "Project" / "Add Reference" Once there is in the COM libraries, Casí at the end of the list Add the WMP Library and the attached ones.

After this you will be added a new user control that is the WMP

    
answered by 16.06.2018 в 23:43