Boost logo

Boost Users :

From: RYAN ROSARIO (uclamathguy_at_[hidden])
Date: 2004-09-09 13:07:12


Unfortunately the VS debugger is not showing a value for tempString (it is not listed). temp2 looks ok though.
 
Ryan

Eric Ocean <subscriber_at_[hidden]> wrote:
What is the value of tempString that is causing the problem?

On Sep 8, 2004, at 9:30 PM, RYAN ROSARIO wrote:

> My MFC has a text box that stores the result from a "choose directory"
> dialog box. I encounter problems when I try to create a path object
> from the value of this textbox. The debugger shows the value of
> scanPath (what I call my path object) to be "" which is then causing
> hangs and exceptions...
>
> Below is the code I am trying to use. I do not see why the constructor
> will not recognize the parameter I am passing to it:
> //m_scanPath is a control variable for the textbox containing the
> directory.
>
> CString temp2; //Since the stuff in the textbox is a CString.
>
> m_scanPath.GetWindowText(temp2); //Get the directory entered in
> the textbox.
>
>
> const char * tempString = temp2.GetBuffer(); //Convert it to a
> const char *.
>
>
> fs::path scanPath(tempString); //This does not work even
> though the param is a const char *)
>
> What am I doing wrong? I imagine it is some type of type casting
> problem?
>
> Thanks in Advance,
>
> Ryan
>
> Do you Yahoo!?
> Express yourself with Y! Messenger! Free. Download
> now._______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-user
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net