How to hook TLIB into the Watcom C/C++ 10.5 IDE, in 3 easy steps: 1) First, copy these GEN_CO.BAT and GEN_CI.BAT into your \WATCOM\BINW\ directory, and copy GEN_CO.CMD and GEN_CI.CMD into your \WATCOM\BINP\ directory. (You may want to first rename the old versions of these files to *.BAK.) If you use Windows-NT, then you should also copy GEN_CI.CMD and GEN_CO.CMD into the \WATCOM\BINNT\ directory. 2) Second, in the Watcom IDE, click "File", click "Set Source Control", and click "Other". (That tells the Watcom IDE to invoke the GEN_* batch scripts when you select "Check In Source" or "Check Out Source" under "Sources" on the menu bar.) 3) Third, add the following iff/endif block (except for the "cut here" lines) to the end your TLIB configuration file (usually TLIB.CFG in the directory into which TLIB was installed): ---------------------------------( cut here )--------------------------------- iff '%FROM_WATCOM_IDE%' eq '1' REM say This is %TLIBCFG:CURFILE%, TLIB was invoked from Watcom's IDE! queries n errorpaus 0 exitpause n colorize n quiet y slickepsi y endif ---------------------------------( cut here )--------------------------------- ============================================================================== Note: the replacement GEN_CI.* and GEN_CO.* files look like this: GEN_CI.CMD: ---------------------------------( cut here )--------------------------------- @echo off @echo This is %WATCOM%\binp\gen_ci.cmd. @rem From IDE: Name=%1, File Containing Message=%2, Project=%3, Target=%4 @set FROM_WATCOM_IDE=1 tlib2 uw %1 @%2 @set FROM_WATCOM_IDE= ---------------------------------( cut here )--------------------------------- GEN_CI.BAT: ---------------------------------( cut here )--------------------------------- @echo off @echo This is %WATCOM%\binw\gen_ci.bat. @rem From IDE: Name=%1, File Containing Message=%2, Project=%3, Target=%4 @set FROM_WATCOM_IDE=1 tlibx uw %1 @%2 @set FROM_WATCOM_IDE= ---------------------------------( cut here )--------------------------------- GEN_CO.CMD: ---------------------------------( cut here )--------------------------------- @echo off @echo This is %WATCOM%\binp\gen_co.cmd. @rem From IDE: pause=%1, name=%2, project=%3, target=%4 @set FROM_WATCOM_IDE=1 @if [%2]==[] goto from_editor tlib2 el %2 @goto aftr_vcs :from_editor @rem Note: This is also called from the Editor, @rem in which case the only parameter is the name (%1) tlib2 el %1 @goto done :aftr_vcs @if [%1]==[no_pause] goto done pause :done @set FROM_WATCOM_IDE= ---------------------------------( cut here )--------------------------------- GEN_CO.BAT: ---------------------------------( cut here )--------------------------------- @echo off @echo This is %WATCOM%\binw\gen_co.bat. @rem From IDE: pause=%1, name=%2, project=%3, target=%4 @set FROM_WATCOM_IDE=1 @if [%2]==[] goto from_editor tlibx el %2 @goto aftr_vcs :from_editor @rem Note: This is also called from the Editor, @rem in which case the only parameter is the name (%1) tlibx el %1 @goto done :aftr_vcs @if [%1]==[no_pause] goto done pause :done @set FROM_WATCOM_IDE= ---------------------------------( cut here )---------------------------------