Solved

Help on mciSendString "save" !!!

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

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…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

758 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now