Здравствуйте! Пишу плеер. Нашёл интересную библиотеку - LibZplay. С помощью неё можно написать неплохой плеер. К библиотеке прилагается документация по использованию и пару примеров.
Инструкция по подключению выглядит так:
Спойлер
=======================================================================
=======================================================================
How to use libZPlay with Visual Basic .NET
=======================================================================
=======================================================================
1. Add libZPlay.vb to your solution/project.
Add->Existing Item... ->libZPlay.vb
=======================================================================
2. Add reference to System.Drawing if not included yet.
Add Reference-> .NET ->System.Drawing
=======================================================================
3. Include libZPlay namespace into your source code
Imports MyApplication.libZPlay
=======================================================================
4. Create ZPlay class.
Dim player As New ZPlay()
=======================================================================
5. Open file.
If player.OpenFile("test.mp3", TStreamFormat.sfAutodetect) = False Then
'' error
End If
=======================================================================
6. Start playing
player.StartPlayback()
=======================================================================
7. At the end destroy ZPlay class (by garbage collector or manually).
=======================================================================
NOTE:
=======================================================================
You must distribute libzplay.dll with your application.
Все эти действия я выполнил, но VStudio ругается:
Спойлер
Warning 1 Namespace or type specified in the Imports 'MyApplication.libZPlay' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. D:\Документы [Smart]\Visual Studio 2010\Projects\AZLK-BC-14\AZLK-BC-14\Settings.vb 1 9 AZLK_BC-14
пробовал саму dll подключать в References, но он говорит, что не может быть добавлена и мне надо убедиться, что это com объект. Как заставить работать это?
Скачать библиотеку можно тут: