hi!
i'm creating a media playing.. using MCI .... the app dosen't play files from multiple directories... though they are added to the listbox.. they are not played only sound files from a single directories are played. what do i do? -V.G
hi!
i'm creating a media playing.. using MCI .... the app dosen't play files from multiple directories... though they are added to the listbox.. they are not played only sound files from a single directories are played. what do i do? -V.G
I seem to be a little unclear as to what your question is. Do you mean you're trying to load files from different directories and play each one and it's not working? Or are you loading from different directories and it's only playing the ones from one of them? Or are you loading from different directories and you only want one directory loaded?
In any case, it sounds like you're having issues with which folder you're in, so I'd look in to the GetCurrentDirectory and SetCurrentDirectory functions.
-Read it again-
Ok, it seems what's *probably* happening (though I'm making a big assumption here) is that in your listbox you're only grabbing the filename, and not the directory name. If this is the case, you need to find some way to remember which directory each file is in and then set the directory before loading it (using SetCurrentDirectory) or by adding the directory to the beginning of the filename before you load/play it.
The problem is that i want to load files from multiple directories and it plays files only from one directory... i.e the one from which the files were last loaded from. the files that were loaded from other directories do not play - V.G