🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Playbacking from thread

#1171
From: Michael Crapo
Date: Thu, 23 Aug 2001 15:34
33 lines
1770 bytes
Mike
	Are you trying to post a windows message to your thread???  If
that is what you are doing then you need to use PostThreadMessage
instead of PostMessage.   The PostThreadMessage takes a ThreadID
instead of a handle.  If this is not what you are tying to do, then I
need more information..

Mike

On Thu, 23 Aug 2001 10:31:19 +0200, Mike <someone@somewhere.com>
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: <3b852215.700166@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!xmission!news-hog.berkeley.edu!ucberkeley!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 08:46:37 PST
From: mcrapo@tng-ida.com (Michael Crapo)
Newsgroups: borland.public.cppbuilder.multimedia
Subject: Re: Playbacking from thread
Date: Thu, 23 Aug 2001 15:34:13 GMT
Message-ID: <3b852215.700166@newsgroups.borland.com>
References: <3B84BF57.200A3CFE@somewhere.com>
X-Newsreader: Forte Free Agent 1.21/32.243
NNTP-Posting-Host: 207.170.242.1
X-Trace: dnews 998580939 207.170.242.1 (23 Aug 2001 08:35:39 -0700)
Lines: 34
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!xmission!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews