Re: Running VS2005 cl.exe without installing

Alen Ladavac <[email protected]> Tue, 17 Jul 2007 08:57:27 +0200
Newsgroups gmane.games.devel.windows
Organization Croteam
Message-ID <[email protected]>
Alen wrote:
> So far I seem to have tracked this to the fact that cl.exe from
> VS2005SP1 actually requires an older version of the msvcrt80.dll and
> its manifest and it refuses to work with the ones distributed with
> VS2005 SP1. Weirdly enough I don't find these installed in System,
> WinSxS or VS2005 folders on my developer machine, but I have them in
> the X360 and VS2003 folders. Strange as hell, but it might work.

Just for the (google) record, seems that this has solved the problem.

Examining the cl.exe from VS2005 SP1 with resource editor shows that
its manifest requires msvcrt80 version 8.0.50608.0. A simple search
for *VC80*.manifest files containing the string "8.0.50608.0", on the
entire disk of a machine which works, has found a matching version of
the manifest along with its dlls. Just copying those dlls and the
manifest to the directory where cl.exe resides, makes it work.

This makes sense, according to
http://msdn2.microsoft.com/EN-US/library/aa375190.aspx, as it makes
cl.exe a "(partially) isolated application".

What is amazing is that (according to Dependency Walker) cl.exe on my
machine happily uses version 8.0.50727.762. I guess it has something
to do with it being registered, probably allowing it to jump in for
the older version.

Cheers,
Alen


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=555