943,866 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Marked Solved
  • Views: 4583
  • C++ RSS
Dec 1st, 2008
0

LPTSTR

Expand Post »
does anyone knows how to conver from LPTSTR to std::string or std::wstring ?
example : i want to convert f_path to abc ang def...

C++ Syntax (Toggle Plain Text)
  1. LPTSTR f_path;
  2. std::string abc;
  3. std::wstring def;

thanks in advance
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ammameiya is offline Offline
2 posts
since Apr 2008
Dec 1st, 2008
0

Re: LPTSTR

Have you tried abc = f_path; ?
Reputation Points: 888
Solved Threads: 114
Nearly a Posting Virtuoso
MosaicFuneral is offline Offline
1,270 posts
since Nov 2008
Dec 1st, 2008
0

Re: LPTSTR

Have you tried abc = f_path; ?
yes.. but since i set my project setting to process UNICODE, it cannot work...

but it works when i tried
C++ Syntax (Toggle Plain Text)
  1. def = f_path
hehe..

thanks for replying
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ammameiya is offline Offline
2 posts
since Apr 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: use of function
Next Thread in C++ Forum Timeline: Directed graph





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC