DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C++ (http://www.daniweb.com/forums/forum8.html)
-   -   LPTSTR (http://www.daniweb.com/forums/thread160340.html)

ammameiya Dec 1st, 2008 9:09 pm
LPTSTR
 
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...

        LPTSTR f_path;
        std::string abc;
std::wstring def;

thanks in advance

MosaicFuneral Dec 1st, 2008 9:51 pm
Re: LPTSTR
 
Have you tried
abc = f_path;
?

ammameiya Dec 1st, 2008 10:06 pm
Re: LPTSTR
 
Quote:

Originally Posted by MosaicFuneral (Post 748441)
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
 def = f_path
hehe..

thanks for replying ;)


All times are GMT -4. The time now is 7:02 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC