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èmelol !
Voici mon code :
Voici l'erreur :
Code : Sélectionner tout - Visualiser dans une fenêtre à part String* logPath = Application::ExecutablePath + "log.txt";
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 saiserror C2845: '+' : cannot perform pointer arithmetic on __gc pointer 'System::String __gc *'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![]()
Partager