Tuesday, December 31, 2013

iphone development, mixed c + + code, CString, LPTSTR, LPCTSTR type how to do?

If the previous c + + code in a similar CString, LPTSTR, LPCTSTR type how to do? What change their type? Or have a better suggestion?
Reply:
See code help documentation on NSString help, your problem can be solved, very detailed.

Reply:
cited landlord almzg_0 reply:
if previous c + + code in a similar CString, LPTSTR, LPCTSTR type how to do? What change their type? Or have a better suggestion?


CSString implementation can be found in the MFC, the latter two are macros should be defined in the Windows.h.

Advice: the best rewritten objecive-c.
Reply:
My day, so cattle. . Or re-write it.


No they all turn into a C-style strings.
Reply:
Have learned chaos. CSTR ()
Reply:
In VC depending on whether _UNICODE is defined macros, CString can be replaced with a string or wstring, LPTSTR behalf char * or wchar_t *, LPCTSTR is a const char * or const wchar_t *
Reply:
CString This library is certainly not the iphone

No comments:

Post a Comment