|
-
Oct 28th, 2002, 07:37 AM
#1
Thread Starter
Hyperactive Member
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
Visual Basic 6.0 Enterprise
Visual C++ 6.0 Professional
Wak 
-
Oct 28th, 2002, 10:08 AM
#2
Frenzied Member
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) ;
-
Oct 28th, 2002, 03:59 PM
#3
Thread Starter
Hyperactive Member
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
Visual Basic 6.0 Enterprise
Visual C++ 6.0 Professional
Wak 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|