PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

General programming questions

I am using MFC for the PPC and using fmod.

1. I can get the program to run and play a sound use ing the PPC ARM. I add the lib directory in options.. add the lib in settings.. copy the dll to wth /windows folder and all works fine..

But then I want it to run on the emulator I run it and says a file is missing.. ok so it is the dll.. so I copy the x86em dll with CEFILEVW into the /windows directory on the emulator.. ok so I run it again.. now it just hangs.. any idea why?

Each folder (x86em,arm etc..) contains a lib AND a DLL does that mean I can attach the lib to the exe and will not need the dll .. or is the lib just a intermediate step to the dll.. in that case I need the dll..

2. I have a program thats loads a dialog that loads another dialog.. where should the #include<fmod.h> file be? Should it be in the main file or can it be in the dialog .. or does it matter? Also when I say

FSOUND_SAMPLE *sound = NULL;

it only works if I put it in the dialog .cpp file.. I tried putting it in the .h file and get errors. any idea why that would happen?

also I tried making it global but then the dialog .cpp file did not see it.. which is strange since I was taught global variable can be accessed from all the classes ?