Solved

Help on mciSendString "save" !!!

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need to retreive data from .TFS file exported by DVR 8 217
Excel Use VBA to get user's Mac Address for their computer 5 240
tripleUp challenge 7 86
noX challenge 17 129
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…
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

840 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