0
C# 용 Windows Media Player 라이브러리에 대해 알아 냈습니다. 친구에게 바보 같은 작은 응용 프로그램을 만들고 있기 때문에 (음악을 좋아하기 때문에) .C#의 WMP 라이브러리 - 목록의 재생 목록
string ply = "Playlist";
WMPLib.IWMPPlaylist pls;
WMPLib.IWMPPlaylistArray plItems;
plItems = axWindowsMediaPlayer1.playlistCollection.getByName(ply);
if (plItems.count == 0)
{
pls = axWindowsMediaPlayer1.playlistCollection.newPlaylist(ply);
}
else
{
plItems.Item(0);
string line;
System.IO.StreamReader stream = new StreamReader(pth);
while ((line = stream.ReadLine()) != null)
{
if (File.Exists(line))
{
WMPLib.IWMPMedia m1 = axWindowsMediaPlayer1.newMedia(line);
pls.appendItem(m1); /*gives an error here (use of unassigned variable)*/
}
}
}
}
내가 재생 목록의 인스턴스를 생성 시도했습니다,하지만 난 그게 그 라인을 허용 얻을 수없는, 어떤 도움이 'p 번째'문자열을 선언 이전 방법에 있었던 주 ( 을 감상 할 수있다