Thx you, it worked once and when I tryed to implement it to my function i got now 22 errors and they look like :
error C2065: 'string' : undeclared identifier

and I do not have a clue why, because I have the include <string>