'TestProject.exe' (Win32): Loaded 'G:\TestROOTVC\TestProject\TestProject\TestProject.exe'. Symbols loaded.
'TestProject.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'.
'TestProject.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'.
'TestProject.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'.
'TestProject.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbase.dll'.
'TestProject.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp140.dll'.
'TestProject.exe' (Win32): Loaded 'C:\Windows\SysWOW64\vcruntime140.dll'.
The thread 0x4004 has exited with code -1073741515 (0xc0000135).
The thread 0x49d4 has exited with code -1073741515 (0xc0000135).
The program '[13336] testproject.exe' has exited with code -1073741515 (0xc0000135) 'A dependent dll was not found'.
You must have ROOTSYS properly set and %ROOTSYS%\bin in your PATH. You can simply call C:\ROOT\root-6.18.04\bin\thisroot.bat in the command prompt, before running your application (this might already fix your problem)
Sorry, this is so basic that I forgot to mention it…