1 | initial version |
// convert the LPCTSTR to string
string PointToString(LPCTSTR filepath) {
//this function has a filepath input and string output
std::stringstream ss;
ss << filepath;
return ss.str();
}
BOOL DisplayImage(LPCTSTR pszImageFilePath) { string imagepath = PointToString(pszImageFilePath);
Mat im = imread(imagepath);
if (!im.data) {
return FALSE;
}
}
2 | No.2 Revision |
// convert the LPCTSTR to string
string PointToString(LPCTSTR filepath) {
//this function has a filepath input and string output
std::stringstream ss;
ss << filepath;
return ss.str();
}
BOOL DisplayImage(LPCTSTR pszImageFilePath) { string imagepath = PointToString(pszImageFilePath);
Mat im = imread(imagepath);
if (!im.data) {
return FALSE;
}
}
3 | No.3 Revision |
// convert the LPCTSTR to string
string PointToString(LPCTSTR filepath) {
{
//this function has a filepath input and string output
std::stringstream ss;
ss << filepath;
return ss.str();
}
}
BOOL DisplayImage(LPCTSTR pszImageFilePath)
{
pszImageFilePath){
string imagepath = PointToString(pszImageFilePath);
PointToString(pszImageFilePath);
Mat im = imread(imagepath);
if (!im.data) {
return FALSE;
}
} }}
4 | No.4 Revision |
// convert the LPCTSTR to stringstring PointToString(LPCTSTR filepath)
string PointToString(LPCTSTR filepath) {
//this function has a filepath input and string output
{
std::stringstream ss;
ss << filepath;
return ss.str();
ss.str(); }
//function call
BOOL DisplayImage(LPCTSTR pszImageFilePath){
pszImageFilePath){
string imagepath = PointToString(pszImageFilePath);
Mat im = imread(imagepath);
if (!im.data) {
return FALSE;
}}}}
5 | No.5 Revision |
string PointToString(LPCTSTR {
//function call
6 | No.6 Revision |
string PointToString(LPCTSTR filepath){
filepath){ //function to convert LPCTSRT to string
std::stringstream ss;
ss << filepath;
return ss.str(); }
//your function
BOOL DisplayImage(LPCTSTR pszImageFilePath){
string imagepath = PointToString(pszImageFilePath);
PointToString(pszImageFilePath); //call function PointToString
Mat im = imread(imagepath);
if (!im.data) {
return FALSE;
}}