<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>Hi,<br></div>
<div> </div>
<div>I want to get unicode value from an mp3 file and I used MediaInfo library for this and its unicode support and I used unicode methods.<br></div>
<div>Code is simple :<br></div>
<div> </div>
<blockquote><div>MediaInfoDLL_Load('MediaInfo.dll');<br></div>
<div>HND := MediaInfo_New(); <br></div>
<div>MediaInfo_Open(HND, 'test.mp3'); <br></div>
<div>ListBox.Items.Add(MediaInfo_Get(HND, Stream_General, 0, 'Title', Info_Text, Info_Name));<br></div>
<div>//MediaInfo_Get: function (Handle: Cardinal; StreamKind: TMIStreamKind; StreamNumber: Integer; Parameter: PWideChar; KindOfInfo: TMIInfo; KindOfSearch: TMIInfo): PWideChar cdecl stdcall;<br></div>
</blockquote><div> </div>
<div>It work if Title value is ansi but if it is unicode it returns "???????" !<br></div>
<div>But if I debug andset value to an string it's deug it shows me correct value.<br></div>
<blockquote><div>s:=MediaInfo_Get(HND, Stream_General, 0, 'Title', Info_Text, Info_Name);//in debug s hint shows correct value but ListBox add ???<br></div>
<div>ListBox.Items.Add(s);<br></div>
</blockquote><div id="sig12586409"><div class="signature"> </div>
<div class="signature">Regards,<br></div>
<div class="signature">Ara<br></div>
</div>
<div> </div>
<pre>
--
http://www.fastmail.com - Access your email from home and the web
</pre>
</body>
</html>