je veux remplacer temp.replaceQSTRING remplacer ne fonctionne pas bien
(QString("/"), QString("\"));
Ici, je reçois une erreur erreur C2001: retour à la ligne en constante
erreur C2275: « QString »: utilisation illégale de ce type comme une expression
Comment puis-je remplacer "/" avec "\"
thakns 4 ur réponse. Mais jusqu'à maintenant je n'ai pas réglé mon problème. S'il vous plaît vérifier mon code
// Convertir un wchar_t *
size_t origsize = strlen(toChar) + 1;
const size_t newsize = 100;
size_t convertedChars = 0;
wchar_t wcstring[newsize];
mbstowcs_s(&convertedChars, wcstring, origsize, toChar, _TRUNCATE);
wcscat_s(wcstring, L"\\*.*\0");
wcout << wcstring << endl; // C:\Documents and Settings\softnotions\Desktop\Release\*.*
SHFILEOPSTRUCT sf;
memset(&sf,0,sizeof(sf));
sf.hwnd = 0;
sf.wFunc = FO_COPY;
//sf.pFrom =wcstring; /* when giving wcstring i am not getting answer */
sf.pFrom = L"C:\\Documents and Settings\\softnotions\\Desktop\\Release\\*.*\0";
wcout << sf.pFrom <<endl; // C:\Documents and Settings\softnotions\Desktop\Release\*.*
Les deux wcstring et sf.pFrom sont les mêmes alors y pas gettng réponse lors de l'attribution sf.pFrom = wcstring;