LPTSTR

Thread Solved
Reply

Join Date: Apr 2008
Posts: 2
Reputation: ammameiya is an unknown quantity at this point 
Solved Threads: 0
ammameiya ammameiya is offline Offline
Newbie Poster

LPTSTR

 
0
  #1
Dec 1st, 2008
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...

  1. LPTSTR f_path;
  2. std::string abc;
  3. std::wstring def;

thanks in advance
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 922
Reputation: MosaicFuneral is just really nice MosaicFuneral is just really nice MosaicFuneral is just really nice MosaicFuneral is just really nice MosaicFuneral is just really nice 
Solved Threads: 92
MosaicFuneral's Avatar
MosaicFuneral MosaicFuneral is offline Offline
Posting Shark

Re: LPTSTR

 
0
  #2
Dec 1st, 2008
Have you tried abc = f_path; ?
"Jedenfalls bin ich überzeugt, daß der Alte nicht würfelt."
"I became very sensitive to what will happen to all this and all of us." -Two geniuses named Albert
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 2
Reputation: ammameiya is an unknown quantity at this point 
Solved Threads: 0
ammameiya ammameiya is offline Offline
Newbie Poster

Re: LPTSTR

 
0
  #3
Dec 1st, 2008
Originally Posted by MosaicFuneral View Post
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
  1. def = f_path
hehe..

thanks for replying
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC