How can I verify (in Visual C++ in MS VS 2013) that the string contents fits to fully qualified path to folder or relative qualified path to folder? I have the following code:
int _tmain(int argc, _TCHAR* argv[])
{
// If command line contains a path to folder:
if (argc == 2)
{
string folderPath = argv[1];
// If this path doesn't exceed 248 characters:
if (folderPath.size() <= MAX_PATH - 12)
{
/*
Here I must verify that the value of folderPath string variable
fits to fully qualified or relative qualified path to folder.
*/
}
}
return 0;
}
Is there any function in Visual C++ that can verify that the value of folderPath string variable fits to fully or relative qualified path to folder? My application is C++ console application without MFC support and I don't use BOOST. In my application I use multibyte character set but not unicode. I'll be very appreciative for the help.