🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #13843

Re: What is wrong with MCI

#13843
From: Pawe�
Date: Wed, 17 Sep 2003 18:41
21 lines
1659 bytes
> > it returns error "303", why?
>
> 303 = MCIERR_ILLEGAL_FOR_AUTO_OPEN
> MCI will not perform the specified command on an automatically opened
> device. Wait until the device is closed, then try to perform the command.
> Gambit

yeah, you're right, but the question is still why it doesn't work, what
should I do to save data in other Thread???

I use MCI (in BCB) to record wave, first open, then record, and at the a
would like
to save a file in a seperate thread, not to "waste" time for saving

void __fastcall TMyThread::Execute()
{
DWORD dwReturn = mciSendCommand(Form1->wDeviceID, MCI_SAVE,
        MCI_SAVE_FILE | MCI_WAIT, (DWORD)(LPVOID) &Form1->mciSaveParms);
}

thanks
Technical Details
Message-ID: <3f68ab48@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f68480b@newsgroups.borland.com> <3f6898af$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,b63935a6d6bc6af1
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-09-17 12:12:05 PST
From: "Pawe�" <kenya@wp.pl>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f68480b@newsgroups.borland.com> <3f6898af$1@newsgroups.borland.com>
Subject: Re: What is wrong with MCI
Date: Wed, 17 Sep 2003 20:41:22 +0200
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 62.29.184.227
Message-ID: <3f68ab48@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1063824200 62.29.184.227 (17 Sep 2003 11:43:20 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail