Hello! I’m having issues :(

[code:1tx07sww]HRSRC rec;
HGLOBAL handle;
void *data;
int length;

rec = FindResource(GetModuleHandle(NULL), "IDR_MP31", RT_RCDATA);
if(rec == NULL)

handle = LoadResource(NULL, rec);
if(handle == NULL)

data = LockResource(handle);
length = SizeofResource(NULL, rec);

stream = FSOUND_Stream_Open((char*)data, FSOUND_LOADMEMORY, 0, length);

if (!stream) {
return 1;

Error1! MessageBox
Error2! MessageBox
And then the function returns as an error :[

So obviously there has to be something wrong with the resource; 128.rc!! Well, I’m using VC++ with VS.NET 2003. I added Yay.mp3 as a resource of type: MP3. The ID is: IDR_MP31. External File = false. The EXE file is really big (so the mp3 must be in there! There’s also a file: 128.res that is also just as big.) But for some reason the MP3 isn’t loading! Any ideas? Because I’ve been on this for a long time!

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.