🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Playbacking from thread

#1170
From: Mike
Date: Thu, 23 Aug 2001 09:14
32 lines
1749 bytes
Hi!

I forget to change CALLBACK_WINDOW to CALLBACK_THREAD.

But it still doesn't work. waveOutOpen still returns "invalid parameter"

(for handle I use this->Handle - and this is thread class).


Mike

Mike wrote:

> Hi!
>
> I have a problem with threads.
>
> I have a thread which controls playback of a WAVE file.
>
> And for controlling it I have to get a handle of thread. But handle
> which I get with "this->handle" isn't the right handle (if I use for
> example "Form1->handle" everything works). So, how can I
> get an "right" handle?
>
> Can I make a message map for thread (I have to process some
> messages which are sent (playbacking events)) - and they are
> sent to the handle, which I sent previously. But that handle isn't
> correct, so what's wrong?
>
> Please help
>
> Mike
Technical Details
Message-ID: <3B84C98D.557D40D5@somewhere.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news-out.nibble.net!news-in.nibble.net!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3B84BF57.200A3CFE@somewhere.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d0fc,3d92e384aaa25825
X-Google-Attributes: gid10d0fc,public
X-Google-ArrivalTime: 2001-08-23 02:20:48 PST
Message-ID: <3B84C98D.557D40D5@somewhere.com>
Date: Thu, 23 Aug 2001 11:14:53 +0200
From: Mike <someone@somewhere.com>
Organization: Anonymous
X-Mailer: Mozilla 4.78 [en] (Win98; U)
X-Accept-Language: en,sl
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.multimedia
Subject: Re: Playbacking from thread
References: <3B84BF57.200A3CFE@somewhere.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 194.249.6.162
X-Trace: dnews 998558086 194.249.6.162 (23 Aug 2001 02:14:46 -0700)
Lines: 33
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news-out.nibble.net!news-in.nibble.net!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews