Re: Win-GHC with GnuWin32 toolset--Mingw32 replacement

Peter Tanski <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.all
Message-ID <7D7DC194-BF41-40D4-88F9-6F00D9368889__5424.60912042788$1168216302$gmane$org@gmail.com>
On Jan 7, 2007, at 6:47 PM, Neil Mitchell wrote:
> On Xp and W2K the reg program is capable of querying and modifying the
> registry. Just type "reg" at the command line. It basically calls the
> Win32 Reg... functions with the appropriate parameters.

I just discovered the tool we need: users should have the Microsoft  
Platform SDK installed.  A quick search for that directory, and in  
there, specifically Program Files\Microsoft Platform SDK [version,  
type]\Setup\ is VCDetect.Exe, which is run from the command line and  
outputs the correct batch-script call for the environment variables  
to a file:

C:\>VCDetect file
C:\>type file

@ECHO OFF
CALL "C:\Program Files\Microsoft Visual Studio 8\Common7\Tools 
\VSVars32.bat"
SET MSVCVer=8.0

I still haven't figured out how to call this properly from a bash- 
shell (however emulated in DOS).  By the way, vSvars32.bat is for  
Visual Studio (more general, better) and--my mistake--vcvars32.bat is  
specific to Visual C++.

Cheers,
Pete
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.