Hello tout le monde,
Il y a une variable en char* qui doit �tre convertie en std::string
Le code est environ celui-ci:
J'ai pu voir dans diff�rents exemples o� std::string path = chProgFullPath �tait utilis�...
Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 ... ... char* chProgFullPath = "C:\WINDOWS\NOTEPAD.EXE"; std::string stdPath = chProgFullPath; md5 = new md5wrapper(); programHashValue = md5->getHashFromFile(stdPath); ... ... std::string getHashFromFile(std::string filename) { FILE *file; ... ... }
Dans mon cas, j'arrive � compiler, aucune erreur de building, mais si j'affiche la valeur de stdPath j'obtiens la valeur NULL.
Cela fait une journ�e que j'ai tout essay� et rien n'y fait...
@+
InovaH
Partager