In order to use this function, you must load the DLL.  Either manually place the
DLL in your CWRIGHT.INI file, in the LibPreLoad section (CW 4.0):

[LibPreLoad]
LibPreLoad="Autmg32.dll"

or for CW 5.0 and higher, go to the Tools|Libraries (6.0 Tools|Customize|Libraries) dialog and click
the ADD button.  Browse for the DLL and open it in the dialog. Then click
OK.  The DLL will be automatically added to your CWRIGHT.INI.

This DLL contains a function to help automate the process of merging a
series of files.  You must have Codewright version 4.0 or higher to
make use of it.  Here is the function's declaration:

	BOOL DLL AutoMerge( void )
	
Return value is TRUE if the operation was successful, and FALSE
otherwise.

Some setup is required.  The DLL expects to find a [Merge] section in
your CWRIGHT.INI file.  In it, you can specify a directory where your
base files can be found (MergeBaseDir), and another where one of the
revisions to the base file is found (MergeRevDir).  The current buffer
is assumed to be the other revision.  The [Merge] section of your
CWRIGHT.INI file might look like this:
  
	[Merge]
	MergeBaseDir=c:\\proj\\orig
	MergeRevDir=c:\\proj\\mine

Note that backslashes are doubled because the directory string can 
contain any of the excape sequences documented for the 
ExtExpandTemplate function.

The function specifies that the output filename is the same as the 
current buffer's name, except that it is given the extension .MRG.
the resulting file is loaded for viewing.


