Problème de concatenation...
Rebonjour à tous !
Voila, j'ai besoin d'obtenir le path sous forme de String d'un fichier log que j'aimerai avoir dans la directory de mon application.
Je me dis, rien de plus facile ! Evidemment j'ai un problème 8O lol !
Voici mon code :
Code:
String* logPath = Application::ExecutablePath + "log.txt";
Voici l'erreur :
Citation:
error C2845: '+' : cannot perform pointer arithmetic on __gc pointer 'System::String __gc *'
J'ai essayé en rajoutant *(Application::ExecutablePath), en me disant que la fonction ExecutablePath me renvoyait un pointeur vers mon String (je suis un coquin, je sais :oops: lol. Petite blague trop nul au passage).
Je me suis renseigné sur http://msdn.microsoft.com/library/ pour la fonction "ExecutablePath".
Voila, que dois-je faire pour ne plus avoir l'erreur :).
Merci de votre aide, à bientôt :)