Quote from: Clyde on February 04, 2010
Have you got it to play music dude?
If you want a hand I'll have a look into it for you.
thx man i will come back for that another time
really great forum here thanks for all you help meights without you i wouldent have make it!so i finally got it r1ght, the problem was that i got in trouble with this peace of code:
Code Select
BASSMOD_Init(-1, 44100, 0); //device, bitrate, flag
BASSMOD_MusicLoad(false, "CORE.MOD", 0, 0, BASS_MUSIC_LOOP);
BASSMOD_MusicPlay();
i thougt i have to declare the funktions in the header like the codesnippets in de manual but i finaly understand this hole .dll thing xD
so then my compiler bug me out with:
Quotefatal error LNK1313: ijw/native-Modul gefunden. Es kann kein Link mit pure-Modulen hergestellt werden.//says: cannot link to pure-modules
and then i could make it run when i change my compiler settings from /clr:pure to /clr and my programm is finaly playing musik

so here is the code for an empty form in visual c++ for a clr projekt that plays a .mod file named core.mod
Code Select
#include "stdafx.h"
#include "Form1.h"
#include "bassmod.h"
#pragma comment( lib, "bassmod.lib" )
using namespace projekt;
[STAThreadAttribute]
int main(array<System::String ^> ^args)
{
if( BASSMOD_Init ( -1, 44100, 0 ) == false)
{
MessageBox::Show( "Coud not Init BASS" );
}
if(BASSMOD_MusicLoad ( FALSE, "core.mod", 0, 0, BASS_MUSIC_LOOP ) == false)
{
MessageBox::Show ( "Could not laod the Music File" );
}
if( BASSMOD_MusicPlay( ) == false)
{
MessageBox::Show ( "Can not Play the Music File" );
}
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
Application::Run(gcnew Form1());
return 0;
}


