<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">hi sir/modem<br>Many thanks for your last regards, I have a problem about data conversion.<br>
i need to convert PString (a class exist in pstring.h inside ptlib
package) object content to char *  but How can i do this ? for more
clearance i write the real code below:<br>
<br>
inline bool operator==(const PString & other)         const { return <span style="color: rgb(192, 0, 0);">CString::Compare(other)</span>; }<br>
i need to convert <span style="color: rgb(192, 0, 0);">other</span> object content to wchar_t * but when run this code it have below error in VC++ 2005 .<br>
<br>
 <span style="color: rgb(192, 0, 0);">error C2664:
'ATL::CStringT<BaseType,StringTraits>::Compare' : cannot convert
parameter 1 from 'const PString' to 'const wchar_t *'</span><br style="color: rgb(192, 0, 0);">
<br>
<span style="color: rgb(0, 0, 0);">Please help me to solve this problem.<br>
</span><span style="color: rgb(0, 0, 0);">I am in wait for your response.<br>
Best regards.<br>
Zahra.<br>
</span></td></tr></table><br>
      <hr size=1> <a href="http://sg.rd.yahoo.com/aa/mail/domainchoice/mail/signature/*http://mail.promotions.yahoo.com/newdomains/aa/"> New Email addresses available on Yahoo! </a> <br>
Get the Email name you've always wanted on the new @ymail and @rocketmail.<br>
Hurry before someone else does!