1

If i use mciSendString (winmm.dll) and try to read file that contains spaces (for example F:\MUSIC\(01) [VA]01.StimAxel - Restart(DJ X-VenomRemix).mp3) i got an error with code 263.
mciSendString can't work with files that contains spaces. How to avoid this problem?
Pcommand = "status \"" + path + "\" length";
int ret = (int)mciSendString(Pcommand, sBuffer, sBuffer.Capacity, 0);

Sergey
  • 105
  • 1
  • 2
  • 5
  • The string you are sending is just nonsense, *status* is for a device, not a media file. This doesn't get better until you explain what you are *really* trying to do. – Hans Passant Nov 13 '10 at 23:08

1 Answers1

0

Try surrounding the filename with double quotes.

Update: According to the docs, the status command takes a device name, not a filename. You need to use open to open the file on a specific device, then pass that device name to status.

casablanca
  • 69,683
  • 7
  • 133
  • 150