19 May '13 - 06:36 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  Developments / BASS / Re: Error 8: BASS_Init() on: 21 Jan '08 - 18:11
Ah thanks I saw that, but I'm confused and very new to C++ .. how would i go about initalizing a window handle?

Edit
I tried using the method to create a form described in that thread.. but my compiler says " 'Form' : undeclared identifier"  Sad
ReplyReply Reply with quoteQuote
2  Developments / BASS / Re: Error 8: BASS_Init() on: 20 Jan '08 - 23:09
Okay i worked out the issue. Windows file protection was blocking the DLL  Roll Eyes (as it was being run as system privelages). I've fixed that now, but I now have a few more problems.

My error calling code is:
void Error(const char *text)
{
printf("\nError %d: %s\n",BASS_ErrorGetCode(),text);
BASS_Free();
ExitProcess(0);
}
which returns an error number (no error string)

but if i put
BASS_ErrorGetCode();
into the main code, NULL is returned.

Anyway, if i call Error() after BASS_Init, i get error code -1 (that shouldnt happen right?) :\
If i call Error after BASS_MIDI_StreamCreateFile i get error code 2.

Very confusing...

This doesnt happen when the program is run in Command Prompt.
Any ideas?

Thanks, jamie
ReplyReply Reply with quoteQuote
3  Developments / BASS / Re: [Java] BASS online examples on: 19 Jan '08 - 15:15
Nice stuff!
Do you know if the BASS MIDI add-on has been ported yet?
ReplyReply Reply with quoteQuote
4  Developments / BASS / Error 8: BASS_Init() on: 18 Jan '08 - 23:31
Hey!

I've written a program in C++, command prompt style, using the BASS engine, and I'm having odd problems with BASS_Init().

The code I use is here:

if(BASS_Init(-1,44100,BASS_DEVICE_LATENCY,0,NULL))
{
 printf("\nInitialized engine OK...\n");
}
else
{
 Error("Failed Initialization");
}

The problem i'm having is that when the program is run from the PHP's program execute command (exec), the C++ BASS program dies at BASS_Init and comes up with Error 8 (BASS_ERROR_INIT). I am confused as this doesnt happen when the program is run from the windows command prompt. I guess one theory could be that when the application is run from the PHP engine a window doesnt actually appear... (the program runs in the system, as opposed to the user), which perhaps messes up with the initilization? i dont know what to do!!

Thanks,
Jamie  Smiley
ReplyReply Reply with quoteQuote
Pages: [1]
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines