<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.2900.6049" name=GENERATOR>
<STYLE>@font-face {
        font-family: 宋体;
}
@font-face {
        font-family: Verdana;
}
@font-face {
        font-family: @宋体;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; layout-grid: 15.6pt; }
P.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
LI.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
DIV.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-WEIGHT: normal; COLOR: windowtext; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-DECORATION: none; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
UNKNOWN {
        FONT-SIZE: 10pt
}
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
</HEAD>
<BODY style="FONT-SIZE: 10pt; MARGIN: 10px; FONT-FAMILY: verdana">
<DIV><FONT face=Verdana color=#000080 size=2><FONT 
color=#000000>-&nbsp;Make&nbsp;it&nbsp;not&nbsp;require&nbsp;the&nbsp;exported&nbsp;classes.&nbsp;I&nbsp;think&nbsp;it&nbsp;complains</FONT>
<DIV>about&nbsp;the&nbsp;inline&nbsp;operators,&nbsp;so&nbsp;if&nbsp;we&nbsp;make&nbsp;these&nbsp;non-inline&nbsp;and&nbsp;compile</DIV>
<DIV>them&nbsp;into&nbsp;the&nbsp;DLL&nbsp;binary,&nbsp;it&nbsp;should&nbsp;probably&nbsp;go&nbsp;away.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Many export class should use FileName(Ogg::File::File(FileName&nbsp;file) 
,MPEG::File::File(FileName&nbsp;file,...), ect). If FileName is not the exported 
class, many errors should happen. So I want to know how to do?</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></FONT></DIV>
<DIV><FONT face=Verdana color=#000080 size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana color=#000080 size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana color=#c0c0c0 size=2>2010-12-22 </FONT></DIV><FONT 
face=Verdana color=#000080 size=2>
<HR style="WIDTH: 100px" align=left color=#b5c4df SIZE=1>
</FONT>
<DIV><FONT face=Verdana color=#c0c0c0 size=2><SPAN>苗澎锋</SPAN> </FONT></DIV>
<HR color=#b5c4df SIZE=1>

<DIV><FONT face=Verdana size=2><STRONG>发件人:</STRONG> Lukáš Lalinský 
</FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>发送时间:</STRONG> 2010-12-22&nbsp; 00:01:21 
</FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>收件人:</STRONG> taglib-devel </FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>抄送:</STRONG> </FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>主题:</STRONG> Re: Question:Taglib on wince 
6.0 </FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>
<DIV>2010/12/21&nbsp;苗澎锋&nbsp;&lt;mpf125@126.com&gt;:</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;Hi&nbsp;ALL:</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;I&nbsp;want&nbsp;to&nbsp;use&nbsp;taglib&nbsp;to&nbsp;extract&nbsp;id3&nbsp;from&nbsp;media&nbsp;files&nbsp;on&nbsp;wince&nbsp;6.0.&nbsp;When&nbsp;I</DIV>
<DIV>&gt;&nbsp;use&nbsp;VS2005&nbsp;to&nbsp;build&nbsp;taglib&nbsp;,&nbsp;it&nbsp;have&nbsp;many&nbsp;the&nbsp;same&nbsp;warnings&nbsp;as&nbsp;the&nbsp;follow:</DIV>
<DIV>&gt;&nbsp;/toolkit\tfile.h&nbsp;:&nbsp;warning&nbsp;C4251:&nbsp;'TagLib::FileName::m_name'&nbsp;:&nbsp;class&nbsp;'std::basic_string&lt;_Elem,_Traits,_Ax&gt;'&nbsp;needs&nbsp;to&nbsp;have&nbsp;dll-interface&nbsp;to&nbsp;be&nbsp;used&nbsp;by&nbsp;clients&nbsp;of&nbsp;class&nbsp;'TagLib::FileName'</DIV>
<DIV>&gt;&nbsp;1&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;with</DIV>
<DIV>&gt;&nbsp;1&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[</DIV>
<DIV>&gt;&nbsp;1&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_Elem=char,</DIV>
<DIV>&gt;&nbsp;1&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_Traits=std::char_traits&lt;char&gt;,</DIV>
<DIV>&gt;&nbsp;1&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_Ax=std::allocator&lt;char&gt;</DIV>
<DIV>&gt;&nbsp;1&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;How&nbsp;to&nbsp;resolve&nbsp;this?&nbsp;Has&nbsp;it&nbsp;bad&nbsp;effect&nbsp;to&nbsp;my&nbsp;Application&nbsp;when&nbsp;I&nbsp;use&nbsp;it?</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;if&nbsp;I&nbsp;modify&nbsp;the&nbsp;class&nbsp;FileName&nbsp;to&nbsp;the&nbsp;followings:</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;class&nbsp;TAGLIB_API&nbsp;FileName</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;{</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;public:</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FileName(const&nbsp;wchar_t&nbsp;*name)&nbsp;:&nbsp;m_pwname(name)&nbsp;{}</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FileName(const&nbsp;char&nbsp;*name)&nbsp;:&nbsp;m_pname(name)&nbsp;{}</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;operator&nbsp;const&nbsp;wchar_t&nbsp;*()&nbsp;const&nbsp;{&nbsp;return&nbsp;m_pwname;&nbsp;}</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;operator&nbsp;const&nbsp;char&nbsp;*()&nbsp;const&nbsp;{&nbsp;return&nbsp;m_pname;&nbsp;}</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;private:</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;const&nbsp;char*&nbsp;m_pname;</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;const&nbsp;wchar_t*&nbsp;m_pwname;</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;};</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;,the&nbsp;above&nbsp;warnings&nbsp;do&nbsp;not&nbsp;appear.&nbsp;But&nbsp;I&nbsp;don't&nbsp;know&nbsp;it&nbsp;is&nbsp;ok&nbsp;to&nbsp;use&nbsp;the</DIV>
<DIV>&gt;&nbsp;Tablib.dll.</DIV>
<DIV></DIV>
<DIV>It&nbsp;isn't&nbsp;ok.&nbsp;The&nbsp;allocated&nbsp;memory&nbsp;might&nbsp;have&nbsp;been&nbsp;deleted&nbsp;in&nbsp;the</DIV>
<DIV>meantime.&nbsp;I&nbsp;think&nbsp;there&nbsp;are&nbsp;two&nbsp;possible&nbsp;options:</DIV>
<DIV></DIV>
<DIV>&nbsp;-&nbsp;Export&nbsp;the&nbsp;STL&nbsp;classes.</DIV>
<DIV>&nbsp;-&nbsp;Make&nbsp;it&nbsp;not&nbsp;require&nbsp;the&nbsp;exported&nbsp;classes.&nbsp;I&nbsp;think&nbsp;it&nbsp;complains</DIV>
<DIV>about&nbsp;the&nbsp;inline&nbsp;operators,&nbsp;so&nbsp;if&nbsp;we&nbsp;make&nbsp;these&nbsp;non-inline&nbsp;and&nbsp;compile</DIV>
<DIV>them&nbsp;into&nbsp;the&nbsp;DLL&nbsp;binary,&nbsp;it&nbsp;should&nbsp;probably&nbsp;go&nbsp;away.</DIV>
<DIV></DIV>
<DIV>Lukas</DIV>
<DIV>_______________________________________________</DIV>
<DIV>taglib-devel&nbsp;mailing&nbsp;list</DIV>
<DIV>taglib-devel@kde.org</DIV>
<DIV>https://mail.kde.org/mailman/listinfo/taglib-devel</DIV></FONT></DIV></BODY></HTML>