Root with WindowsXP/NT/w2000 with VC++ 9.0 not working

On my PC working with WindowsXP and where VisualC++ 9.0 is installed, the following 2 versions of ROOT work perfectly:
WindowsXP/NT/w2000 with VC++ 9.0, version 5.20/00 (good old tar file) (44.7 MB).
WindowsXP/NT/w2000 with VC++ 7.1, version 5.20/00 (good old tar file) (44.4 MB).
On the PC of my colleague Bernard Fabbro, also running under WindowsXP, but where no version of Visual C++ is installed, and no version of any compiler or linker, only version of ROOT compiled and linked with VC++ 7.1 is working. The version of ROOT compiled and linked with VC++9.0 gives the following message at launch:
"Cette application n’a pas pu démarrer, car la configuration de l’application est incorrecte"
I have verified that his %ROOTSYS% variable is correctly defined and that %ROOTSYS%\bin is in the path
Have you an idea of the problem? Thanks a lot in advance.

Hi Francois-Xavier,

The runtime dlls are probably missing… I’ll check and let you know.

Cheers,
Bertrand.

Hi Francois-Xavier,

Sorry for the late reply…
I think you will have to copy some of the files in this directory:
C:\Program Files\Microsoft Visual Studio 9.0\VC\redist
And especially the ones from:
C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT

Please give it a try and let me know.

Cheers,
Bertrand.

Hi Bertrand,
It is half a success. I have copied all the files in C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT of my PC into %ROOTSYS%\bin of the PC of my colleague and the result is

  • that the version of ROOT 5.20/00 compiled and linked with VC++9.0 is now working of his PC
  • but a program of me, compiled and linked with VC++9.0 still does not work on his PC, with the same message

Do you suggest that I copy ALL dll from C:\Program Files\Microsoft Visual Studio 9.0\VC\redist [there are a lot ] and not only the ones of C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT ?

Hi Francois-Xavier,

I forgot to tell that these files have to be copied in C:\WINNT\System32 (as it seems quite obvious…) :wink:
Then they will be accessible by any other application :slight_smile:

Cheers,
Bertrand.

Hi Bertrand,
I have collected ALL .dll and .manifest files that I have found under C:\Program Files\Microsoft Visual Studio 9.0\VC\redist, except those under “amd64”, and put them all into C:\WINNT\system32 of the PC of Bernard Fabbro. Things remain the same, ROOT 5.20/00 compiled and linked with VC++9.0 is now working, but my small application built upon ROOT 5.20/00 [VC++9.0] compiled and linked with VC++9.0 on my PC does not work on the PC of Bernard.
This worries me, since it is certainly also the case of my program Litrani [I have not yet tried], meaning that for the time being only people working under Linux and people working on WindowsXP having VC++9.0 can use it.

Hi Bertrand,
I have thought that perhaps the solution was to install the Free version of Visual C++ on the PC of Bernard, and I have discovered when looking how to do that your site root.cern.ch/root/Procedure/ is out of date, with non-existing links. It would be good if you could update it.

Hi F-X

I tried google on your problem, and apparently it is a quite common problem…
Anyway, to install free version of Visual Studio, just download and install!
There is no need of special tricks anymore with version 9.0

Cheers,
Bertrand.

Hi Bertrand,
The problem is solved! The installation of the Free version of Visual C++9.0 on the PC of Bernard Fabbro has the consequence that immediatly, without any recompilation, my programs compiled and linked with VC++9.0 work on his PC. I will put the information on my Litrani website. Perhaps is it also worth to put a warning on the ROOT website?

Hi Francois-Xavier,

Yes, maybe, but I will check what could be done to solve this kind of problem without having to force people to install Visual C++ (even if it is free :wink: )

Cheers,
Bertrand.