Hello All,
I have been working on a application that will prompt a user to create a directroy on the file system. If I hard code the parameters the project will work. However when I try to cast a string variable to LPCTSTR I get an error. Here is a snippet of my code:
string userDirectory;
cout<<
"Hello!\n";cout<<
"Please enter the fully qualified path of the directory you would like to create: ";cin>>userDirectory;
LPCTSTR dir = (LPCTSTR(userDirectory));
Anyone know of a way to convert a string user input variable to a LPCTSTR type
Kind Regards,
O