Author Topic: bass_fx: having problems running the demo VB project  (Read 272 times)

murspieg

  • Posts: 20
We installed bass_fx from the site's zip file, using dll's for bass2.4's and bass_fx.

When running prjTempo.vbp, we find a variety of undefined variables, such as all the structures for CMD (.CancelError, .Filename, etc); as well as sldPosition variables. 

We see the Form's objects (sldPosition, etc) are picture boxes, even tho the attributes in the code are appropriate for sliders.

Does anyone have a demo project using Tempo control for bass_fx that we can learn from?

Tnx

jpf

  • Posts: 183
Re: bass_fx: having problems running the demo VB project
« Reply #1 on: 11 Aug '23 - 06:09 »
This sounds like you're missing the components comdlg32.ocx and MSCOMCTL.OCX in your project. Please try adding them to the Components dialog.

The prjTempo.vbp project seems to have been created on a 32 bit Windows OS, and you're probably trying to run it on a 64 bit  Windows (for instance Windows 10 64 bit). The system folders holding those components difer from 32 bit to 64 bit OS. If you're actually using a 64 bit OS they're probably in the \Windows\SysWow64 folder.

Also the stdole2.tlb file is in a different folder, but the Tempo project doesn't seem to use the declarations in it. I'd say you can safely delete this dependency in the References dialog.

If that doesn't change things please share the .log files in your project folder to posibly get a hint on the problem.

I plan to update the vb examples sometime, but not right now.


murspieg

  • Posts: 20
Re: bass_fx: having problems running the demo VB project
« Reply #2 on: 13 Aug '23 - 18:00 »
We're compiling on 32 bit.  Added the ocx files in the components dialog (MS common dialog control/MS Win common controls 6.0).

Also, for some reason, the modules (bass.bas/bass_fx.bas) had to be added for the demo to run. 

It works!   Thx for helping! 

jpf

  • Posts: 183
Re: bass_fx: having problems running the demo VB project
« Reply #3 on: 14 Aug '23 - 15:26 »
Glad to learn that you got it working.

About the posibility of bass.bas and bass_fx.bas being missing from the project, it didn't come to my mind. Now on a second thought, the symptoms you described clearly leaded to that. Sorry if I misleaded you.

I don't currently have a 32 bit OS to test the demos, so I just inspected the files using notepad. I checked that bass_fx.bas was correctly referenced in prjTempo.vbp (line 5: "Module=BASS_FX; ..\bass_fx.bas"), and the need for adding bass.bas was indirectly stated in frmTempo.frm initial comments:  "' * Requires: BASS 2.4 (available @ www.un4seen.com)".

So, bass_fx.bas shouldn't be missing if you loaded the project from the whole bass_fx demos folder. Maybe you isolated the Tempo folder from the rest of the bass_fx folder, so effectively missing bass_fx.bas, which is outside the Tampo folder.

murspieg

  • Posts: 20
Re: bass_fx: having problems running the demo VB project
« Reply #4 on: 14 Aug '23 - 15:42 »
Exactly right.  Since Tempo was the only thing I needed, I had moved it.
Good diagnoses!