-
mciSendString
if I pass a file which is on my desktop, or in one of the subdirectories of my desktop to mciSendString... it will return an error... I am running Windows XP, is there anyway to get around this??
C:\Documents and Settings\Matts\Desktop\MP3\
is my desktop path..
Thank you
-
Two things -
the \ character is interpreted as so-called escape (not ascii 27)
it's used in front of characters (including itself ) that have specail meaning eg. :
put a quote inside a string, you need to 'escape' the quote
Code:
char *quote = "\"";
use \\
Spaces in folder names cause problems:
Code:
char * mypathname;
strcpy(mypathname,"C:\\Documents and Settings\Matts\\Desktop\\MP3\\");
PathQuoteSpaces(mypathname);
strcat(mypathname,filename) ;
-
hmmm
I don't know if it makes any difference, but I've put an extra set of " 's around the whole thing, I was told that this takes care of spaces in filenames, but as for folder name's, I'm not sure.
I'll give it a go... Thanx Jim