 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Michael Zhang Guest
|
Posted: Mon May 16, 2005 3:50 pm Post subject: OLE error C00D1086. |
|
|
Dear All,
Following codes is test whether a media item is a member of a particular
named playlist (Windows Media Player component).
But I got a error, Why?
procedure TMediaPlayer.Add;
var
WMPMedia: IWMPMedia;
begin
WMPMedia := Self.mediaCollection.add('d:MusicsSong.wmv');
if
WMPMedia.isMemberOf(player.playlistCollection.getByName('MyPlayList').item(0))
then
ShowMessage('The PlayList object already contain the Song.wmv')
else
WMPPlayList.appendItem(WMPMedia);
end;
If the condition is true the codes works OK, if it is false I got a error -
"OLE error C00D1086".
Can someone help me? Thanks.
Michael Zhang
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|