TextComparison Object

This object represents a text file comparison window. The window isn’t necessarily visible on screen and can be used either to perform file comparison services for a client, or to present file comparisons on the screen to the user.

Use the methods and properties exposed by this object to perform text file comparisons, extract results, and to alter the appearance of a text file comparison window.

Properties

Activeread/writeICommonUI

The active state of the comparison window.

IDL [propget] HRESULT Active([out, retval] VARIANT_BOOL* pValue)
[propput] HRESULT Active([in] VARIANT_BOOL newValue)
.NET Boolean Active[get, set]
VB6 Active As Boolean

AllUnresolvedConflictsread-onlyIFileComparison

Provides a count of the unresolved conflicts in all files in the comparison.

IDL [propget] HRESULT AllUnresolvedConflicts([out, retval] long* pValue)
.NET Int32 AllUnresolvedConflicts[get]
VB6 AllUnresolvedConflicts As Long

AutoSaveOnCloseread/writeIFileComparison

Normally, if Merge is closed when some modified files are unsaved, it will ask the user whether those files should be saved (unless the PromptForUnsavedFiles property is set to false, in which case any unsaved files will be discarded). However, if AutoSaveOnClose is set to true, Merge will automatically save any unsaved files without prompting the user. This feature can sometimes be useful when integrating Merge with other applications.

IDL [propget] HRESULT AutoSaveOnClose([out, retval] VARIANT_BOOL* pValue)
[propput] HRESULT AutoSaveOnClose([in] VARIANT_BOOL newValue)
.NET Boolean AutoSaveOnClose[get, set]
VB6 AutoSaveOnClose As Boolean

ChangeLengthread-onlyITextComparison

The number of lines in a change.

IDL [propget] HRESULT ChangeLength(
    [in] long nChange,
    [in] long nSide,
    [in, optional] VARIANT nFilePair,
    [out, retval] long* pValue)
.NET Int32 get_ChangeLength(
    Int32 nChange,
    Int32 nSide,
    Object nFilePair)
VB6 ChangeLength(
    nChange As Long,
    nSide As Long
    [, nFilePair As Variant]) As Long
  • nChange
    Specifies the change (0 based) for which the number of contained lines is required. This value should be in the range 0 to NumberOfChanges-1.
  • nSide
    Specifies the left (0) or right (1) side of the change.
  • nFilePair optional
    Specifies whether to return results for files 0 and 1 (when nFilePair = 0, the default) or files 1 and 2 (when nFilePair = 1).

ChangeStartLineread-onlyITextComparison

The starting line number (0 based) of a change.

IDL [propget] HRESULT ChangeStartLine(
    [in] long nChange,
    [in] long nSide,
    [in, optional] VARIANT nFilePair,
    [out, retval] long* pValue)
.NET Int32 get_ChangeStartLine(
    Int32 nChange,
    Int32 nSide,
    Object nFilePair)
VB6 ChangeStartLine(
    nChange As Long,
    nSide As Long
    [, nFilePair As Variant]) As Long
  • nChange
    Specifies the change (0 based) for which the starting line is required. This value should be in the range 0 to NumberOfChanges-1.
  • nSide
    Specifies the left (0) or right (1) side of the change.
  • nFilePair optional
    Specifies whether to return results for files 0 and 1 (when nFilePair = 0, the default) or files 1 and 2 (when nFilePair = 1).

ChangeTyperead-onlyITextComparison

The type of a change. A change represents a block of inserted, removed, changed, or unchanged lines.

IDL [propget] HRESULT ChangeType(
    [in] long nChange,
    [in, optional] VARIANT nFilePair,
    [out, retval] ChangeStyle* pValue)
.NET ChangeStyle get_ChangeType(
    Int32 nChange,
    Object nFilePair)
VB6 ChangeType(
    nChange As Long
    [, nFilePair As Variant]) As ChangeStyle
  • nChange
    Specifies the change (0 based) for which the type is required. This value should be in the range 0 to NumberOfChanges-1.
  • nFilePair optional
    Specifies whether to return results for files 0 and 1 (when nFilePair = 0, the default) or files 1 and 2 (when nFilePair = 1).

ComparisonErrorread-onlyIFileComparison

The error (if any) that was encountered by the Compare method.

IDL [propget] HRESULT ComparisonError(
    [in, optional] VARIANT nFilePair,
    [out, retval] FileComparisonError* pValue)
.NET FileComparisonError get_ComparisonError(
    Object nFilePair)
VB6 ComparisonError(
    [nFilePair As Variant]) As FileComparisonError
  • nFilePair optional
    Specifies whether to return results for files 0 and 1 (when nFilePair = 0, the default) or files 1 and 2 (when nFilePair = 1).

ComparisonResultread-onlyIFileComparison

The result (fcrSame, fcrDifferent, fcrError) of the comparison performed by the Compare method.

IDL [propget] HRESULT ComparisonResult(
    [in, optional] VARIANT nFilePair,
    [out, retval] FileComparisonResult* pValue)
.NET FileComparisonResult get_ComparisonResult(
    Object nFilePair)
VB6 ComparisonResult(
    [nFilePair As Variant]) As FileComparisonResult
  • nFilePair optional
    Specifies whether to return results for files 0 and 1 (when nFilePair = 0, the default) or files 1 and 2 (when nFilePair = 1).

ErrorInforead/writeIFileComparison

Provides detailed information about errors encountered while loading/comparing one of the files. If nFile is -1, then errors that applied to all three files (for example, out of memory errors) are returned.

IDL [propget] HRESULT ErrorInfo(
    [in] short nFile,
    [out, retval] BSTR* pValue)
[propput] HRESULT ErrorInfo(
    [in] short nFile,
    [in] BSTR newValue)
.NET String get_ErrorInfo(
    Int16 nFile)
void set_ErrorInfo(
    Int16 nFile, String newValue)
VB6 ErrorInfo(
    nFile As Integer) As String
  • nFile
    The file (0, 1, or 2) to get error information for. A value of -1 can also be specified to denote all files.

FileContentread/writeITextComparison

Enables the content a file panel to get set or retrieved.

IDL [propget] HRESULT FileContent(
    [in] short nFile,
    [out, retval] BSTR* pValue)
[propput] HRESULT FileContent(
    [in] short nFile,
    [in] BSTR newValue)
.NET String get_FileContent(
    Int16 nFile)
void set_FileContent(
    Int16 nFile, String newValue)
VB6 FileContent(
    nFile As Integer) As String
  • nFile
    Specifies the file (0, 1 or 2) that contains the line.

FullLineDataread-onlyITextComparison

The contents of a line within one of the files. The content includes CR and/or LF line ending characters.

IDL [propget] HRESULT FullLineData(
    [in] long nLine,
    [in] short nFile,
    [out, retval] BSTR* pValue)
.NET String get_FullLineData(
    Int32 nLine,
    Int16 nFile)
VB6 FullLineData(
    nLine As Long,
    nFile As Integer) As String
  • nLine
    Specifies the line (0 based) whose data is required.
  • nFile
    Specifies the file (0, 1 or 2) that contains the line.

FullLineLengthread-onlyITextComparison

The length of a line within one of the files. The length includes CR and/or LF line ending characters.

IDL [propget] HRESULT FullLineLength(
    [in] long nLine,
    [in] short nFile,
    [out, retval] long* pValue)
.NET Int32 get_FullLineLength(
    Int32 nLine,
    Int16 nFile)
VB6 FullLineLength(
    nLine As Long,
    nFile As Integer) As Long
  • nLine
    Specifies the line (0 based) whose length is required.
  • nFile
    Specifies the file (0, 1 or 2) that contains the line.

Heightread/writeICommonUI

The height of the comparison window in pixels.

IDL [propget] HRESULT Height([out, retval] long* pValue)
[propput] HRESULT Height([in] long newValue)
.NET Int32 Height[get, set]
VB6 Height As Long

Leftread/writeICommonUI

The location of the left edge pixel coordinate of the comparison window.

IDL [propget] HRESULT Left([out, retval] long* pValue)
[propput] HRESULT Left([in] long newValue)
.NET Int32 Left[get, set]
VB6 Left As Long

LineDataread-onlyITextComparison

The contents of a line within one of the files. The content does not include CR and/or LF line ending characters.

IDL [propget] HRESULT LineData(
    [in] long nLine,
    [in] short nFile,
    [out, retval] BSTR* pValue)
.NET String get_LineData(
    Int32 nLine,
    Int16 nFile)
VB6 LineData(
    nLine As Long,
    nFile As Integer) As String
  • nLine
    Specifies the line (0 based) whose data is required.
  • nFile
    Specifies the file (0, 1 or 2) that contains the line.

LineLengthread-onlyITextComparison

The length of a line within one of the files. The length does not include CR and/or LF line ending characters.

IDL [propget] HRESULT LineLength(
    [in] long nLine,
    [in] short nFile,
    [out, retval] long* pValue)
.NET Int32 get_LineLength(
    Int32 nLine,
    Int16 nFile)
VB6 LineLength(
    nLine As Long,
    nFile As Integer) As Long
  • nLine
    Specifies the line (0 based) whose length is required.
  • nFile
    Specifies the file (0, 1 or 2) that contains the line.

Maximizedread/writeICommonUI

The maximized state of the comparison window.

IDL [propget] HRESULT Maximized([out, retval] VARIANT_BOOL* pValue)
[propput] HRESULT Maximized([in] VARIANT_BOOL newValue)
.NET Boolean Maximized[get, set]
VB6 Maximized As Boolean

Minimizedread/writeICommonUI

The minimized state of the comparison window.

IDL [propget] HRESULT Minimized([out, retval] VARIANT_BOOL* pValue)
[propput] HRESULT Minimized([in] VARIANT_BOOL newValue)
.NET Boolean Minimized[get, set]
VB6 Minimized As Boolean

Modifiedread/writeIFileComparison

Enables the modified state of a file to be set or retrieved.

IDL [propget] HRESULT Modified(
    [in] short nFile,
    [out, retval] VARIANT_BOOL* pValue)
[propput] HRESULT Modified(
    [in] short nFile,
    [in] VARIANT_BOOL newValue)
.NET Boolean get_Modified(
    Int16 nFile)
void set_Modified(
    Int16 nFile, Boolean newValue)
VB6 Modified(
    nFile As Integer) As Boolean
  • nFile
    The file (0, 1, or 2) to get/set the modified state for.

NumberOfChangesread-onlyIFileComparison

The number of changes between two files. Use this property and the ChangeType, ChangeStartLine, and ChangeLength properties to iterate through the changes between the compared files. Note that the set of changes will include unchanged blocks of lines as well as removed, inserted, and changed blocks of lines.

IDL [propget] HRESULT NumberOfChanges(
    [in, optional] VARIANT nFilePair,
    [out, retval] long* pValue)
.NET Int32 get_NumberOfChanges(
    Object nFilePair)
VB6 NumberOfChanges(
    [nFilePair As Variant]) As Long
  • nFilePair optional
    Specifies whether to return the number of changes between files 0 and 1 (when nFilePair = 0, the default) or files 1 and 2 (when nFilePair = 1).

NumberOfLinesread-onlyITextComparison

The number of lines in one of the compared files.

IDL [propget] HRESULT NumberOfLines(
    [in] short nFile,
    [out, retval] short* pValue)
.NET Int16 get_NumberOfLines(
    Int16 nFile)
VB6 NumberOfLines(
    nFile As Integer) As Integer
  • nFile
    Specifies the file in question (0, 1 or 2 for the first, second and third files respectively).

PromptForUnsavedFilesread/writeIFileComparison

If a file comparison window containing modified files is closed, Merge will normally provide an opportunity to save them. Setting this property to false will prevent the Save Changes window from appearing. See also the AutoSaveOnClose property.

IDL [propget] HRESULT PromptForUnsavedFiles([out, retval] VARIANT_BOOL* pValue)
[propput] HRESULT PromptForUnsavedFiles([in] VARIANT_BOOL newValue)
.NET Boolean PromptForUnsavedFiles[get, set]
VB6 PromptForUnsavedFiles As Boolean

ReadOnlyread/writeIFileComparison

Enables the read-only state of a file to be set or retrieved.

IDL [propget] HRESULT ReadOnly(
    [in] short nFile,
    [out, retval] VARIANT_BOOL* pValue)
[propput] HRESULT ReadOnly(
    [in] short nFile,
    [in] VARIANT_BOOL newValue)
.NET Boolean get_ReadOnly(
    Int16 nFile)
void set_ReadOnly(
    Int16 nFile, Boolean newValue)
VB6 ReadOnly(
    nFile As Integer) As Boolean
  • nFile
    The file (0, 1, or 2) to get/set the read-only state for.

SaveFileNameread/writeIFileComparison

The filename to use when saving changes (with Ctrl+S or other save command) in the text comparison window.

IDL [propget] HRESULT SaveFileName([out, retval] BSTR* pValue)
[propput] HRESULT SaveFileName([in] BSTR newValue)
.NET String SaveFileName[get, set]
VB6 SaveFileName As String

ThreeWayMergeActionsread-onlyIFileComparison

Retrieves a collection of actions that need to be performed to merge changes from the first and third files into the central common ancestor file.

IDL [propget] HRESULT ThreeWayMergeActions([out, retval] IThreeWayMergeActions** pValue)
.NET ThreeWayMergeActions ThreeWayMergeActions[get]
VB6 ThreeWayMergeActions As ThreeWayMergeActions

Topread/writeICommonUI

The location of the top edge pixel coordinate of the comparison window.

IDL [propget] HRESULT Top([out, retval] long* pValue)
[propput] HRESULT Top([in] long newValue)
.NET Int32 Top[get, set]
VB6 Top As Long

UnresolvedConflictsread-onlyIFileComparison

Provides a count of the unresolved conflicts in one of the files in the comparison.

IDL [propget] HRESULT UnresolvedConflicts(
    [in] short nFile,
    [out, retval] long* pValue)
.NET Int32 get_UnresolvedConflicts(
    Int16 nFile)
VB6 UnresolvedConflicts(
    nFile As Integer) As Long
  • nFile
    Specifies the file (0, 1 or 2) that should be checked for unresolved conflict.

ViewTyperead/writeIComparison

The comparison type (two way or three way layout).

IDL [propget] HRESULT ViewType([out, retval] FileViewType* pValue)
[propput] HRESULT ViewType([in] FileViewType newValue)
.NET FileViewType ViewType[get, set]
VB6 ViewType As FileViewType

Visibleread/writeICommonUI

The visible state of the comparison window.

IDL [propget] HRESULT Visible([out, retval] VARIANT_BOOL* pValue)
[propput] HRESULT Visible([in] VARIANT_BOOL newValue)
.NET Boolean Visible[get, set]
VB6 Visible As Boolean

Widthread/writeICommonUI

The width of the comparison window in pixels.

IDL [propget] HRESULT Width([out, retval] long* pValue)
[propput] HRESULT Width([in] long newValue)
.NET Int32 Width[get, set]
VB6 Width As Long

Methods

CloseICommonUI

Closes the comparison window.

IDL HRESULT Close()
.NET void Close()
VB6 Close

CompareIComparison

Compares two or three files. This method is synchronous. A ComparisonComplete event is fired when the comparison is finished to report errors and results.

IDL HRESULT Compare(
    [in] VARIANT strFirstFile,
    [in] VARIANT strSecondFile,
    [in, optional] VARIANT strThirdFile)
.NET void Compare(
    Object strFirstFile,
    Object strSecondFile,
    Object strThirdFile)
VB6 Compare(
    strFirstFile As Variant,
    strSecondFile As Variant
    [, strThirdFile As Variant])
  • strFirstFile
    The fully qualified path to the first file
  • strSecondFile
    The fully qualified path to the second file
  • strThirdFile optional
    The fully qualified path to the third file

CompareAsyncIFileComparison

Compares two or three files. This method is asynchronous (returns before the comparison completes). A ComparisonComplete event is fired when the comparison is finished to report errors and results.

IDL HRESULT CompareAsync(
    [in] VARIANT strFirstFile,
    [in] VARIANT strSecondFile,
    [in, optional] VARIANT strThirdFile)
.NET void CompareAsync(
    Object strFirstFile,
    Object strSecondFile,
    Object strThirdFile)
VB6 CompareAsync(
    strFirstFile As Variant,
    strSecondFile As Variant
    [, strThirdFile As Variant])
  • strFirstFile
    The fully qualified path to the first file
  • strSecondFile
    The fully qualified path to the second file
  • strThirdFile optional
    The fully qualified path to the third file

CompareAsyncWithEncodingITextComparison2

Compares two or three files, using the specified encodings when loading the files. This method is asynchronous (returns before the comparison completes). A ComparisonComplete event is fired when the comparison is finished to report errors and results.

IDL HRESULT CompareAsyncWithEncoding(
    [in] VARIANT strFirstFile,
    [in] IEncoding* firstEncoding,
    [in] VARIANT strSecondFile,
    [in] IEncoding* secondEncoding,
    [in, optional] VARIANT strThirdFile,
    [in, optional] IEncoding* thirdEncoding)
.NET void CompareAsyncWithEncoding(
    Object strFirstFile,
    Encoding firstEncoding,
    Object strSecondFile,
    Encoding secondEncoding,
    Object strThirdFile,
    Encoding thirdEncoding)
VB6 CompareAsyncWithEncoding(
    strFirstFile As Variant,
    firstEncoding As Encoding,
    strSecondFile As Variant,
    secondEncoding As Encoding
    [, strThirdFile As Variant]
    [, thirdEncoding As Encoding])
  • strFirstFile
    The fully qualified path to the first file
  • firstEncoding
    The encoding to use when loading the first file, or 0 (null NULL) to use the default encoding.
  • strSecondFile
    The fully qualified path to the second file
  • secondEncoding
    The encoding to use when loading the second file, or 0 (null NULL) to use the default encoding.
  • strThirdFile optional
    The fully qualified path to the third file
  • thirdEncoding optional
    The encoding to use when loading the third file, or 0 (null NULL) to use the default encoding.

CompareWithEncodingITextComparison2

Compares two or three files, using the specified encodings when loading the files. This method is synchronous. A ComparisonComplete event is fired when the comparison is finished to report errors and results.

IDL HRESULT CompareWithEncoding(
    [in] VARIANT strFirstFile,
    [in] IEncoding* firstEncoding,
    [in] VARIANT strSecondFile,
    [in] IEncoding* secondEncoding,
    [in, optional] VARIANT strThirdFile,
    [in, optional] IEncoding* thirdEncoding)
.NET void CompareWithEncoding(
    Object strFirstFile,
    Encoding firstEncoding,
    Object strSecondFile,
    Encoding secondEncoding,
    Object strThirdFile,
    Encoding thirdEncoding)
VB6 CompareWithEncoding(
    strFirstFile As Variant,
    firstEncoding As Encoding,
    strSecondFile As Variant,
    secondEncoding As Encoding
    [, strThirdFile As Variant]
    [, thirdEncoding As Encoding])
  • strFirstFile
    The fully qualified path to the first file
  • firstEncoding
    The encoding to use when loading the first file, or 0 (null NULL) to use the default encoding.
  • strSecondFile
    The fully qualified path to the second file
  • secondEncoding
    The encoding to use when loading the second file, or 0 (null NULL) to use the default encoding.
  • strThirdFile optional
    The fully qualified path to the third file
  • thirdEncoding optional
    The encoding to use when loading the third file, or 0 (null NULL) to use the default encoding.

GiveUserControlICommonUI

Gives control over the lifetime of the comparison window to the user. Merge will not automatically close the window when outstanding automation references are released.

IDL HRESULT GiveUserControl()
.NET void GiveUserControl()
VB6 GiveUserControl

PrintIComparison

Prints the file comparison.

IDL HRESULT Print(
    [in] VARIANT_BOOL bShowPrinterDialog,
    [in] PageOrientation nOrientation)
.NET void Print(
    Boolean bShowPrinterDialog,
    PageOrientation nOrientation)
VB6 Print(
    bShowPrinterDialog As Boolean,
    nOrientation As PageOrientation)
  • bShowPrinterDialog
    Defaults to false. Whether to show the printer dialog to the user before printing.
  • nOrientation
    Defaults to poLandscape. Whether to print in portrait or landscape mode.

RefreshIComparison

Recompares the files displayed in the window. This will cause any unsaved changes to be discarded.

IDL HRESULT Refresh()
.NET void Refresh()
VB6 Refresh

ReportIComparison

Generates a report for the file comparison.

IDL HRESULT Report(
    [in] BSTR bstrReporter,
    [in] LineEndingStyle nLineEndingStyle,
    [in] BSTR strOutputFile)
.NET void Report(
    String bstrReporter,
    LineEndingStyle nLineEndingStyle,
    String strOutputFile)
VB6 Report(
    bstrReporter As String,
    nLineEndingStyle As LineEndingStyle,
    strOutputFile As String)
  • bstrReporter
    The short-name of the reporter that should be used to generate the report. Valid names are xml, html, htmlslideshow, and diff. Please note that not all reporters support the generation of three-way comparison reports.
  • nLineEndingStyle
    The type of line-ending to use in the generated report file(s).
  • strOutputFile
    The name of the output file for the report. If the reporter generates more than one file, those files will have names based on this one.

Report2IComparison

Generates a report for the file comparison.

IDL HRESULT Report2(
    [in] BSTR bstrReporter,
    [in] LineEndingStyle nLineEndingStyle,
    [in] VARIANT vtEncoding,
    [in] BSTR strOutputFile)
.NET void Report2(
    String bstrReporter,
    LineEndingStyle nLineEndingStyle,
    Object vtEncoding,
    String strOutputFile)
VB6 Report2(
    bstrReporter As String,
    nLineEndingStyle As LineEndingStyle,
    vtEncoding As Variant,
    strOutputFile As String)
  • bstrReporter
    The short-name of the reporter that should be used to generate the report. Valid names are “xml”, “html”, “htmlslideshow”, and “diff”. Please note that not all reporters support the generation of three-way comparison reports.
  • nLineEndingStyle
    The type of line-ending to use in the generated report file(s).
  • vtEncoding
    The character encoding to use for the generated report. It can either be a codepage number, or one of the following strings: UCS2 (Unicode UCS2), UCS2-BE (Unicode UCS2 big endian), UTF8 (Unicode UTF8 with byte-order marker), UTF8-NOBOM (Unicode UTF8 without byte-order marker), UTF7 (Unicode UTF7).
  • strOutputFile
    The name of the output file for the report. If the reporter generates more than one file, those files will have names based on this one.

RestoreICommonUI

Restores the comparison window from minimized or maximised state to its normal resizable state.

IDL HRESULT Restore()
.NET void Restore()
VB6 Restore

SaveComparisonIComparison

Saves the comparison to a file. We recommend that you use the .cmp7 extension in the filename.

IDL HRESULT SaveComparison(
    [in] BSTR filename)
.NET void SaveComparison(
    String filename)
VB6 SaveComparison(
    filename As String)
  • filename
    The name of the file to which the comparison should be saved.

SaveFileIFileComparison

Saves the file in the nFile panel. If the strSaveTo argument is provided, Merge performs a Save As to the specified file.

IDL HRESULT SaveFile(
    [in] short nFile,
    [in, optional] VARIANT strSaveTo)
.NET void SaveFile(
    Int16 nFile,
    Object strSaveTo)
VB6 SaveFile(
    nFile As Integer
    [, strSaveTo As Variant])
  • nFile
    The file (0, 1, or 2) to save.
  • strSaveTo optional
    An optional file name to use when saving the file.

SaveFileAsIFileComparison

Prompts the user to save the file in the nFile panel with a new name.

IDL HRESULT SaveFileAs(
    [in] short nFile)
.NET void SaveFileAs(
    Int16 nFile)
VB6 SaveFileAs(
    nFile As Integer)
  • nFile
    The file (0, 1, or 2) to save.

SetPanelTitlesIComparison

Sets the titles shown above the file panels.

IDL HRESULT SetPanelTitles(
    [in] VARIANT strFirst,
    [in] VARIANT strSecond,
    [in, optional] VARIANT strThird)
.NET void SetPanelTitles(
    Object strFirst,
    Object strSecond,
    Object strThird)
VB6 SetPanelTitles(
    strFirst As Variant,
    strSecond As Variant
    [, strThird As Variant])
  • strFirst
    The title for the first file panel.
  • strSecond
    The title for the second file panel.
  • strThird optional
    The title for the third file panel.

ThreeWayMergeIFileComparison

Merges the two outer files in a three-way comparison into the central common ancestor file. The number of merging conflicts encountered during the merge is returned.

IDL HRESULT ThreeWayMerge([out, retval] long* pValue)
.NET Int32 ThreeWayMerge()
VB6 ThreeWayMerge As Long

Events

CloseIFileComparisonEvents

The file comparison window was closed by the user.

IDL HRESULT Close()
.NET void Close()
VB6 Close

ComparisonCompleteIFileComparisonEvents

Occurs when a file comparison completes. For comparisons between two files, only the first two arguments are defined. For comparisons between three files, all four arguments are defined.

IDL HRESULT ComparisonComplete(
    [in] FileComparisonError error1,
    [in] FileComparisonResult result1,
    [in, optional] FileComparisonError error2,
    [in, optional] FileComparisonResult result2)
.NET void ComparisonComplete(
    FileComparisonError error1,
    FileComparisonResult result1,
    FileComparisonError error2,
    FileComparisonResult result2)
VB6 ComparisonComplete(
    error1 As FileComparisonError,
    result1 As FileComparisonResult
    [, error2 As FileComparisonError]
    [, result2 As FileComparisonResult])
  • error1
    The error, if any, that occurred during the comparison of the first and second files.
  • result1
    The result of the comparison between the first and second files.
  • error2 optional
    The error, if any, that occurred during the comparison of the second and third files.
  • result2 optional
    The result of the comparison between the second and third files.