Solved

Help on mciSendString "save" !!!

Posted on 1998-05-28
1
286 Views
Last Modified: 2013-11-19
Hi,
   I'm writing a wave audio app and it work properly for everything except that I try to save as a new file using the following code :

wsprintf(ach, TEXT("save zyzthing \"%s\""),(LPSTR)fileName);
mcierr = mciSendString(ach, NULL, 0, NULL);

Yes, the code work, but the saved wave file can't be recorded !!!
And I also try to rewrite the command string as " save pathname",the saved wave file though can be recorded, this code only work for the path without space!!! That is it can't work for path like "c:\program files\test.wav" !

What is the problem and how to modify it !!!
0
Comment
Question by:surenechan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 23

Accepted Solution

by:
chensu earned 0 total points
ID: 1315670
It is likely that the MCI driver does not support long filenames. Try "PROGRA~1" instead of "program files".
0

Featured Post

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question