set OLDDIR=%CD%

cd %VS90COMNTOOLS%

chdir /d %VS90COMNTOOLS%
 
cd..

cd..

cd vc

cd bin

call vcvars32.bat

chdir /d %OLDDIR%

link /OUT:"hpqchmsr.dll" /INCREMENTAL /NOLOGO  /DLL /MANIFEST /MANIFESTFILE:"hpqchmsr.dll.embed.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /NODEFAULTLIB:"libcmtd.lib" /SUBSYSTEM:WINDOWS /DYNAMICBASE:NO /MACHINE:X86 /ERRORREPORT:PROMPT chmlib.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib alinks.obj chmfile.obj chmintruder.obj CHMLib.obj CHMParser.obj CHMRankEngine.obj CHMSearch.obj CHMTransforms.obj HHCParse.obj MonacoLocal.obj ProcessSink.obj SQKeywordInfo.obj SRTopicInfo.obj stdafx.obj StripAlgo.obj SynStopHandler.obj




mt -manifest hpqchmsr.dll.manifest -outputresource:hpqchmsr.dll;2

pause


