Thread: mci error playing files

  1. #1
    Android geek@02's Avatar
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    470

    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 10:33 AM.
    GameJolt: https://gamejolt.com/@KasunL
    Game Development Youtube:
    https://is.gd/XyhYoP
    Amateur IT Blog: http://everything-geeky.blogspot.com/



    (and, sorry for my amateur English)

  2. #2
    Registered User OnionKnight's Avatar
    Join Date
    Jan 2005
    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, 11:46 AM
  5. Multiple Cpp Files
    By w4ck0z in forum C++ Programming
    Replies: 5
    Last Post: 11-14-2005, 02:41 PM