You must is 'Advance Programming' to modify Code to Error!. Please wait!.. Now I'll help. Try create code with your own. Example: Draw Graphic Visualizer. Use bass.dll for nBass 1.8
Indeed, I am not an experienced programmer. I understand there are three different ways to get VB2010 connecting to BASS:
1. the "direct" approach where the needed wrapper fragments are provided in a ModuleBASS.vb file (your first example)
2. relying on the nBASS wrapper - in VB2010, how do you specify that you are using the nBASS wrapper?
3. installing the BASSNET wrapper, supplied by from un4seen
I like your minimalist "direct" VB approach. It enables me to concentrate on the VB Form, on the VB Code and on the wrapper fragments that are required to talk with BASS, in the .net context. I only need to concentrate on few BASS function calls. A particular BASS demo that's catching my eyes is the \BASS\bass24\vb\DSPtest demo supplied by un4seen. It is catching my eyes because this is a genuine sample-by-sample audio DSP. I would like to have that particular demo working in VB2010, so I can start modifying a few lines in the audio DSP, and measure the result.
In my computer, the \BASS\bass24\delphi\DspTest demo is already running on Delphi 7, but due to the fact that I already have a few graphical front-ends written for VB2010, containing Charts elements introduced in VB2010, I prefear working with VB2010.
I also tried \BASS\bass24\c\dsptest using VC++2010, but no luck, it completely fails.
As I am using VC++2010, the project automatically gets converted when doing "file" then "open", but after the conversion I'm getting this warning saying:MSB8012: $(TargetPath) ('C:\Documents and Settings\Administrateur\Mes documents\Downloads\Audio DSP on WinPC\BASS and BASSASIO audio lib\BASS\bass24\c\dsptest\..\bin\dsptest.exe') does not match the Linker's OutputFile property value '..\bin\dsptest.exe' ('C:\Documents and Settings\Administrateur\Mes documents\Downloads\Audio DSP on WinPC\BASS and BASSASIO audio lib\BASS\bass24\c\bin\dsptest.exe') in project configuration 'Release|Win32'. This may cause your project to build incorrectly. To correct this, please make sure that $(TargetPath) property value matches the value specified in %(Link.OutputFile).
Unfortunately, I don't know how to correct the wrong path that's invoved there. Anyway, from there everything goes weird. Upon rebuilding the app, I get a warning saying that the debug info is missing. Browsing the files, I can find the C++ code but I cannot find the Form. And I see there is a 27 megabyte dsptest.sdf file, I particulary hate this. If I try a "run", nothing happens. That's my misery with VC++2010.
Would be a fantastic help if you show your minimalist "direct" .net BASS wrapper approach, applied to the \BASS\bass24\vb\DSPtest demo supplied by un4seen. "The less, the best".