After several reboots of root and visual studio, there is no error anymore. However Visual doesnât create the test.root whereas I put a TFile process, I donât know why but when I run the .exe from windows, it generates the test.root, nevermind.
(Maybe rights issue, I run Visual as admin but still not working)
Sorry but what file location do you mean? The project file.sln is in my Documents and the .exe generated is in my Documents too. However the Visual studio.exe is in Program Files
Okay you were right, I moved the project folder in Documents (instead of C:\projects) and I shaw the current folder with GetCurrentDir thanks to the second answer from âcomputinglifeâ
It turns out that the folder is âŚ\myproject\myproject
As a result to have the same effect than running manualy the program from windows, I had to redefine the path in my C++:
TFile *file = new TFile("../Debug/test4.root", "RECREATE");
Everything is working well now⌠until the next time!