Article View: borland.public.cppbuilder.multimedia
Article #361Re: MCIWndSave is not saving the write name file
From: dcent
Date: Mon, 30 Aug 2004 22:06
Date: Mon, 30 Aug 2004 22:06
23 lines
1730 bytes
1730 bytes
Gustavo Ringel wrote:
> I tested an MCI sample from Borland Code Center and it works ok, but it not saves the filename ok, and I don't understand why.
>
> This is the code (i have changed testing to solve the problem the instruction wsprintf of the sample to strcpy)
>
> char file[96]="";
Sounds to me that you are not clearing the buffer. Try:
char file[96]={0};
> strcpy(file,"aud.wav");
> //
> // now stop audio and save to disk
> MCIWndStop(m_hMCIWnd);
> MCIWndSave(m_hMCIWnd, file);
> MCIWndClose(m_hMCIWnd);
>
> It saves the file but with name like ��⹤��v
>
> If i change this file name to something.wav it plays ok.
>
> Someone knows a solution to this?
Technical Details
Message-ID:
<4133A4D1.1070202@NetScape.net>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4082312b$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,11070dbb67bf45e X-Google-Attributes: gid10d0fc,public X-Google-Language: ENGLISH,CP1252 Message-ID: <4133A4D1.1070202@NetScape.net> Date: Mon, 30 Aug 2004 17:06:09 -0500 From: dcent <DcentJ8@NetScape.net> Reply-To: DcentJ8@NetScape.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.multimedia Subject: Re: MCIWndSave is not saving the write name file References: <4082312b$1@newsgroups.borland.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 65.6.192.60 X-Trace: newsgroups.borland.com 1093903569 65.6.192.60 (30 Aug 2004 15:06:09 -0700) Lines: 24 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail