🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.multimedia
Article #612

MCIWndSave is not saving the write name file

#612
From: Gustavo Ringel
Date: Sun, 18 Apr 2004 07:41
18 lines
1468 bytes
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]="";
  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: <4082312b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!news-xfer.cox.net!peer01.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10d0fc,11070dbb67bf45e,start
X-Google-Attributes: gid10d0fc,public
X-Google-ArrivalTime: 2004-04-18 00:53:47 PST
From: "Gustavo Ringel" <gringel@adinet.com.uy>
Sender: "Gustavo Ringel" <gringel@adinet.com.uy>
Reply-To: "Gustavo Ringel" <gringel@adinet.com.uy>
Subject: MCIWndSave is not saving the write name file
Newsgroups: borland.public.cppbuilder.multimedia
X-User-Info: 213.8.100.17     
X-Forwarded-For: 192.168.0.89, 213.8.100.17
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4082312b$1@newsgroups.borland.com>
Date: 18 Apr 2004 00:41:31 -0700
X-Trace: newsgroups.borland.com 1082274091 207.105.83.66 (18 Apr 2004 00:41:31 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!news-xfer.cox.net!peer01.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail