In bass.h there is at least one method that looks to be a prerequisite for any operations using the library:
HPLUGIN BASSDEF(BASS_PluginLoad)( const char * file, DWORD flags );
HPLUGIN BASSDEF(BASS_PluginLoad)( const char * file, DWORD flags );
To copy to clipboard, switch view to plain text mode
Perhaps you should start by reading the BASS documentation and looking at any example programs that might be in either your downloaded code or on the library's web site.
Edit: Maybe I am wrong about that - this function may just be for loading plugins for use with BASS, not the BASS library itself. In a simple example from the BASS distribution, the WinMain() method does exactly what you are doing:
int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,LPSTR lpCmdLine, int nCmdShow)
{
// check the correct BASS was loaded
if (HIWORD(BASS_GetVersion())!=BASSVERSION) {
MessageBox(0,"An incorrect version of BASS.DLL was loaded",0,MB_ICONERROR);
return 0;
}
// display the window
DialogBox(hInstance,MAKEINTRESOURCE(1000),NULL,&dialogproc);
return 0;
}
int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,LPSTR lpCmdLine, int nCmdShow)
{
// check the correct BASS was loaded
if (HIWORD(BASS_GetVersion())!=BASSVERSION) {
MessageBox(0,"An incorrect version of BASS.DLL was loaded",0,MB_ICONERROR);
return 0;
}
// display the window
DialogBox(hInstance,MAKEINTRESOURCE(1000),NULL,&dialogproc);
return 0;
}
To copy to clipboard, switch view to plain text mode
So my guess is that you might be linking a release version of the library to the debug version of the executable. This generally doesn't work in Windoze.
Bookmarks