Hello,
in Windows Forms this is working:
Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_DEFAULT, this.Handle)
but in WPF Forms this.Handle not exists, is not compiling. Therefore I got following code, which compiles fine:
var winHandle = new WindowInteropHelper(this).Handle;
Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_DEFAULT, winHandle )
but I get the error message when window is being loaded:
System.TypeInitializationException: "The type initializer for 'Un4seen.Bass.Bass' threw an exception."
BadImageFormatException An attempt was made to load a file with an incorrect format. (0x8007000B)
Thanks for any help, Francis