mci error playing files

This is a discussion on mci error playing files within the Windows Programming forums, part of the Platform Specific Boards category; hi why is that mciSendString() cannot play media files which contains spaces in their file/path names? for example, mciSendString() can ...

  1. #1
    Android
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    375

    mci error playing files

    hi
    why is that mciSendString() cannot play media files which contains spaces in their file/path names? for example, mciSendString() can play a file called "Pilgrim.mp3", but when i tell it to play a file called "The Celts.mp3" it gives the "The specified device is not open or is not recognized by MCI" error. anybody know a solution?

    thx.

    eidt: it's ok. i just used dos paths and problem solved.
    Last edited by geek@02; 11-22-2006 at 09:33 AM.
    Some useless programs i've wrote : slprogrammersheaven
    Youtube: http://www.youtube.com/user/geekyzine
    My amature IT Blog: http://everything-geeky.blogspot.com/
    My Flash games: http://flashweed.blogspot.com/

    (and, sorry for my amature english)

  2. #2
    Mad OnionKnight's Avatar
    Join Date
    Jan 2005
    Location
    Umeň, Sweden
    Posts
    555
    eidt: it's ok. i just used dos paths and problem solved.
    I wouldn't say that's a good solution. Try putting double quotes around the path.
    "The Celts.mp3" -> "\"The Celts.mp3\""

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Ressources files
    By mikahell in forum Windows Programming
    Replies: 4
    Last Post: 06-19-2006, 06:50 AM
  2. add source files to embedded VC 4.0
    By George2 in forum C++ Programming
    Replies: 4
    Last Post: 06-13-2006, 03:28 AM
  3. *.cpp and *.h files understanding
    By ElastoManiac in forum C++ Programming
    Replies: 4
    Last Post: 06-11-2006, 04:45 AM
  4. Linking header files, Source files and main program(Accel. C++)
    By Daniel Primed in forum C++ Programming
    Replies: 3
    Last Post: 01-17-2006, 10:46 AM
  5. Multiple Cpp Files
    By w4ck0z in forum C++ Programming
    Replies: 5
    Last Post: 11-14-2005, 01:41 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21