🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

A bug in MM system

Started by
-1 comments, last by Void 24 years, 8 months ago
I noticed most ppl use mciSendString to open a midi file.

However, I ran across a bug today. If two applications from different directory locations loads the midi file and the midi file is different in both directories, the mmsystem does not load the file from the current directory even if the filename is specified as .\FILENAME.MID. Instead it loads the midi in the directory of the other application.

I discovered this while doing a directplay application and running two copies of it on ipx.

It can be solved by getting the current directory and passing the full path in the mciSendString, instead of the relative path.

I have also encountered a random occurance where the opening the file would fail even though the relative filename passed is correct (I know cause I print out the filename passed). I wonder if passing the full path would solve that too.

Hope this helps

This topic is closed to new replies.

Advertisement