IVCmdUserWord::Train

This method is called by the application to train a list of user-defined phrases.

Syntax

HRESULT Train( PCWSTR lpPhrases, DWORD dwSize, PCWSTR lpCaption, DWORD dwSizeCap, DWORD hHandle, DWORD dwFlags);

Parameters

lpPhrases
Long pointer to a null-terminated text string consisting of the phrase to be trained.
dwSize
Specifies a DWORD that contains the number of bytes in the string pointed to by lpPhrases.
lpCaption
Long pointer to the string that contains the title caption of the training form.
dwSizeCap
Specifies a DWORD that contains the number of bytes in the caption string pointed to by lpCaption.
hHandle
Reserved, must be 0.
dwFlags
Reserved, must be 0.

Return Values

NOERROR indicates success. If an error occurs, the appropriate HRESULT value is returned.