<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=203492321-18012007><FONT face=Arial
size=2>hi!</FONT></SPAN></DIV>
<DIV><SPAN class=203492321-18012007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=203492321-18012007><FONT face=Arial size=2>i'm trying to code a
C# application with display ID3 tags of song currently played in winamp. I'm not
coding a winamp plugin but a stand alone application in C# .NET 2.0 on VS2005
express.</FONT></SPAN></DIV>
<DIV><SPAN class=203492321-18012007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=203492321-18012007><FONT face=Arial size=2>If i used a hard
coded string, the TagLib.File.Create(path) is working
perfectly.</FONT></SPAN></DIV>
<DIV><SPAN class=203492321-18012007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=203492321-18012007><FONT face=Arial size=2>Exemple
:</FONT></SPAN></DIV>
<DIV><SPAN class=203492321-18012007><FONT face=Arial size=2>String path =
"C:\\mp3\\test.mp3";</FONT></SPAN></DIV>
<DIV><SPAN class=203492321-18012007><FONT face=Arial
size=2>TagLib.File.Create(path); // return a full fonctionnal object for tags
reading</FONT></SPAN></DIV>
<DIV><SPAN class=203492321-18012007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=203492321-18012007><FONT face=Arial size=2>If i use the WACC
lib to get path of the song currently played in winamp, i'm getting the same
path as before (after some transformation because WACC return string with \0
terminated) , but TagLib.File.Create(path) always return
null.</FONT></SPAN></DIV>
<DIV><SPAN class=203492321-18012007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=203492321-18012007><FONT face=Arial size=2>Exemple
:</FONT></SPAN></DIV>
<DIV><SPAN class=203492321-18012007><FONT face=Arial size=2>String path =
"C:\\mp3\\test.mp3";</FONT></SPAN></DIV>
<DIV><SPAN class=203492321-18012007><FONT face=Arial size=2>String path2 =
Winamp.getCurrentSongPath();</FONT></SPAN></DIV>
<DIV><SPAN class=203492321-18012007><FONT face=Arial
size=2>Console.WriteLine(path.CompareTo(path2)); // return zero : path =
path2</FONT></SPAN></DIV>
<DIV><SPAN class=203492321-18012007><FONT face=Arial
size=2>TagLib.File.Create(path); // is not null, all is ok</FONT></SPAN></DIV>
<DIV><SPAN class=203492321-18012007><FONT face=Arial
size=2>TagLib.File.Create(path2); // is null so i can't read tags...
:-(</FONT></SPAN></DIV>
<DIV><SPAN class=203492321-18012007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=203492321-18012007><FONT face=Arial size=2>I don't understand
why taglib don't want to construct properly with certain String (which seem to
be the same for C# string comparaison).</FONT></SPAN></DIV>
<DIV><SPAN class=203492321-18012007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=203492321-18012007><FONT face=Arial size=2>maybe someone has an
idea ?</FONT></SPAN></DIV>
<DIV><SPAN class=203492321-18012007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=203492321-18012007><FONT face=Arial size=2>thanks for reading.
bye!</FONT></SPAN></DIV>
<DIV><SPAN class=203492321-18012007><FONT face=Arial
size=2></FONT></SPAN> </DIV></BODY></HTML>