IMsmMerge::Connect method (mergemod.h)

The Connect method connects a module that has been, or will be, merged into the database to an additional feature. For more information, see the Connect method of the Merge object.

IMsmMerge2::Connect    Mergemod.dll version 2.0 or later.

IMsmMerge::Connect      All Mergemod.dll versions.


HRESULT Connect(
  const BSTR Feature



The name of a feature in the database. A LPCWSTR may be used in place of a BSTR.

Return value

This method can return one of these values.

Value Meaning
One of the arguments is invalid.
The connect failed.
The function succeeded.


The feature must exist before this function is called. Errors may be retrieved using get_Errors. Errors and informational messages are posted to the current log file.

Changes made to the database are not be saved to disk unless CloseDatabase function is called with bCommit set to TRUE.


Minimum supported client Mergemod.dll 1.0 or later
Target Platform Windows
Header mergemod.h
DLL Mergemod.dll

See also

Merge Module Automation