Hi dersmon,
Thanks for pointing it out. Here two things are clear
1. There is nothing to do from XMP side, as OpenFile is not passed a correct path as char * / const char * / XMP_StringPtr . It's the application task to pass correct XMP_StringPtr (which is nothing but const char * refer XMP_Const.h)
2. In application we are not able to get correct char * from QString. We are using
"XMP_StringPtrfilenamePtr=(XMP_StringPtr)filePath.toUtf8();"
to get char * which seems wrong. On the right hand side filePath.toUts8() returns the QByteArray but we need the pointer. I went through the QString documentation "http://qt-project.org/faq/answer/how_can_i_convert_a_qstring_to_char_and_vice_versa" to get the right way to convert char * from a QString.
Could you please change the above line with the following lines?
QByteArrayba=str1.toLocal8Bit();
constchar*c_str_FileName=filePath.data();
printf("str2: %s",c_str_FileName); //this must print a correct path, if not, please refer the above page again.
XMP_StringPtrfilenamePtr=c_str_FileName; //althout c_str_FileName is const char * and can be use, but this line will avoid changing fileNamePtr in code
I don't have qt setup, if the above change doesn't work, I will like to either work on your setup (if you allow) or to do a qt setup.