[h323plus] please help us to convert PString object content to char * in VC++.

ZAHRA dehghanianfard zahra_d84 at yahoo.com
Thu Oct 29 05:59:30 EDT 2009

hi sir/modem
Many thanks for your last regards, I have a problem about data conversion.

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:

inline bool operator==(const PString & other)         const { return CString::Compare(other); }

i need to convert other object content to wchar_t * but when run this code it have below error in VC++ 2005 .

 error C2664:
'ATL::CStringT<BaseType,StringTraits>::Compare' : cannot convert
parameter 1 from 'const PString' to 'const wchar_t *'

Please help me to solve this problem.

I am in wait for your response.

Best regards.


      Get your new Email address!
Grab the Email name you've always wanted before someone else does!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.packetizer.com/pipermail/h323plus/attachments/20091029/d14b78cf/attachment-0004.html>

More information about the h323plus mailing list