Solved

Help on mciSendString "save" !!!

Posted on 1998-05-28
1
283 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
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Pressing cancel button with C# UI Automation 3 90
move a line in eclipse 3 109
withoutTen challenge 14 137
Problem to App 4 116
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

679 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