Hallo,
ich versuche im Moment eine "Musikverwaltung",
bei der man die Songs auch direkt abspielen kann, indem man sie aus der Liste auf den Player zieht. Der letzte Eintrag im ListView ist die (vollst.) Pfadangabe zur Musikdatei.
private void listView1_ItemDrag(object sender, ItemDragEventArgs e)
{
var listviewitem = (ListViewItem) e.Item;
//Hier:
axWindowsMediaPlayer1.launchURL(listviewitem.SubItems[listviewitem.SubItems.Count - 1].Text);
}
tritt ein Fehler namens "0xC00D1239" auf:> Fehlermeldung:
COMException wurde nicht behandelt.
Ausnahme von HRESULT: 0xC00D1329
Wodran liegt das bzw. wie kann ich das beheben?
Danke,
C#ler
In theory, there is no difference between theory and practice. But, in practice, there is.
The nice thing about the Java API is that if you don't like it, just wait two minutes — it will change. Doug Lyon
Man Schlage hier nach: Windows Error Codes: HRESULT Values
0xC00D1329
NS_E_CURL_INVALIDURLThe URL is not valid.
Danke erstmal, aber warum kommt die Meldung? Der Pfad existiert umd es wird auch das richtige übergeben!?
Gruß,
C#ler
In theory, there is no difference between theory and practice. But, in practice, there is.
The nice thing about the Java API is that if you don't like it, just wait two minutes — it will change. Doug Lyon
Hallo C#ler,
laut der Meldung musst du eine (korrekte) Url und keinen Pfad übergeben.
Möglicherweise reicht es vor den Pfad file:/// zu setzen und alle Backslashs durch Slashs zu ersetzen.
herbivore
Hallo,
also muss mein Pfad dann
"file:///C:/Users/(...)/Music/(...).mp3"
heißen?
Dabei kommt die gleiche Fehlermeldung wie vorher ("C://Users//(...)//Music//(...).mp3").
Gruß,
C#ler
In theory, there is no difference between theory and practice. But, in practice, there is.
The nice thing about the Java API is that if you don't like it, just wait two minutes — it will change. Doug Lyon
Ich glaube herbivore hat sich einfach vertippt:
"file://C:/Users/(...)/Music/(...).mp3"
Ein '/' zu viel.
Hallo pdelvo,
herbivore hat sich einfach vertippt
nö
Suche in http://de.wikipedia.org/wiki/URL mal nach file:///
Weil üblicherweise kein Hostname angegeben wird, stehen bei file normalerweise drei Slashes hintereinander.
herbivore
Hallo,
Was ist jetzt das Problem bei meiner Anweisung?
Gruß C#ler
In theory, there is no difference between theory and practice. But, in practice, there is.
The nice thing about the Java API is that if you don't like it, just wait two minutes — it will change. Doug Lyon