Automation - Handling ADspOutputWindow Events in (Visual)C++

Hi.

Automation API about event handling works well except ADspOutputWindow in Visual C++.

Refer to the demo , the OnAppClose event from an ADspApplication object was fired when Idde closing, all events in ADspProcessor also works well. Only events handler in Visual C++ from ADspOutputWindow  not work well, but the same event handler written in JavaScript will be triggered when event occurred.

I've attached my project that was created with Visual Studio 2017.

testVdspOutputWindow2.zip

best regards!

  • 0
    •  Analog Employees 
    on Oct 27, 2020 1:19 PM 1 month ago

    Hi,

    Could you please modify your code based on the below example.

    Here's an example for ADspOutputWindow  in C++:

    IADspApplicationPtr pApp;
    IADspOutputWindowPtr pOutputWindow;

    pApp.CreateInstance( "VisualDSP.ADspApplication" );
    pOutputWindow = pApp->OutputWindow;
    pOutputWindow->Visible = FALSE;

    This should give you the visible state of the output window. This example will hide the output window.

    Also, please make sure the Interactive property should be set to False when you are running scripts that you do not want to be interrupted by a dialog or message box.
    When it is set as "True", it will accepts input from the user via a dialog box or message box.

    For more details, please refer the VisualDSP++ Automation API Reference in the below VisualDSP++ help path:
    VisulaDSP++ Help > Contents > Automation > API Reference > ADspOutputWindow
    VisulaDSP++ Help > Contents > Automation > API Reference > ADspApplication

    Regards,
    Nishanthi.V