#
#    Copyright Analog Flavor 2013-2025
#
#    All rights reserved.
#
#    This software contains proprietary and confidential information which is the
#    property of Analog Flavor and is subject to license terms.
#
#    This file may be used in accordance with the license agreement 
#    provided with the software.
#
#    This copyright notice may not be removed or altered.
#
Integrating the BeSpice Wave win32 widget to a WPF application is possible. 
The following example uses a HwndHost implemented in a C++ CLR project. 
The HwndHost object handles the unmanaged BeSpice Wave widget.

C# or VBS managed code
- create a new WPF project in Visual Studio
- insert a border as placeholder window in your xaml file
- generate an event handler for window loaded
- see  MainWindow.xaml for example
- implement the Window_Loaded event handler 
- implement a class "BspwaveManagedImpl", inheriting cliWinBspWaveWrapper
- see MainWindow.xaml.cs and MainWindow.xaml.vbs

C++ unmanaged code
- add a C++ CLR Project to the same solution
- add the following files from the Analog Flavor software package to the CLR project
    - ...\win\include\winBspWaveWrapperRuntime.cpp (implements loading of the BeSpice Wave dll at runtime)
    - ...\win\include\cliWinBspWaveWrapper.cpp (implements the HwndHost)
    - make sure the path to the corresponding header files is included in your project's include path
- add the CLR project to the dependencies of the C# or VBS project
- add references to WindowsBase, PresentationCore, PresentationFramework, SystemXaml to your C# or VBS project
- In properties -> linking -> entries add %(AdditionalDependencies) to additional dependencies



