IVDctDialogs::TrainTopicDlg

HRESULT TrainTopicDlg(HWND hWndParent, PTSTR pszTitle);

Displays a topic training dialog box, which trains the speech-recognition engine for words specially used in the topic that may need imrpovement. This dialog box should be displayed at the request of the engine or whenever the speaker wants to display it.

· Returns NOERROR if successful, or one of these error values:

E_INVALIDARG
VCMDERR_INVALIDMODE
VCMDERR_INVALIDWINDOW
VCMDERR_NOTSUPPORTED
VCMDERR_OUTOFMEM
VCMDERR_VALUEOUTOFRANGE

hWndParent

[in] Handle of the parent window. If this parameter is NULL, the engine returns NOERROR if it supports the Topic Training dialog box or VCMDERR_NOTSUPPORTED if it does not.

pszTitle

[in] Address of the string to use as the title of the dialog box. This parameter can be NULL to direct the engine to provide a default title.

If the engine does not supply this dialog box, the speaker cannot train it for the topic; however, the application will still work.