Main > Knowledge Base > 1C:Enterprise documentation > Add-in Development Technology > Creating add-ins with COM technology > COM interfaces of 1C:Enterprise > Dialog boxes > 1C:Enterprise documentation > Add-in Development Technology > Creating add-ins with COM technology > COM interfaces of 1C:Enterprise > Dialog boxes > 1C:Enterprise documentation > Add-in Development Technology > Creating add-ins with COM technology > COM interfaces of 1C:Enterprise > Dialog boxes

Dialog boxes

To provide user interaction, an object can use the standard COM interface IMsgBox, which is inherited from IUnknown. The interface is not available on the server or in external connections.

Confirm

Description:

Displays a dialog box with text specified in queryText and buttons OK and Cancel.

Syntax:

HRESULT Confirm(const BSTR queryText, VARIANT* retVal);

Parameters:

queryText

Type: BSTR. Question text.

retVal

Type: VARIANT. Return value of the dialog box, which has VT_BOOL type: TRUE for clicking OK, or FALSE for clicking Cancel.

Return value:

Alert

Description:

Displays a simple notification dialog box with text specified in queryText and OK button.

Syntax:

HRESULT Alert(BSTR queryText);

Parameters:

queryText

Type: BSTR. Message text.

Return value:

Next page: Getting platform info




© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.