🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: VCL Form inside TThread->Execute

#147
From: danzer
Date: Mon, 16 Jun 2008 14:48
16 lines
1951 bytes
James wrote:
> I would, except that the application that uses this thread form in not a C++ 
> Builder application.  In fact, it does not have its own support for 
> multi-thread, however it does allow dll calls.
> 
> Hence, I decided to wrap up a form object into a thread and place that into 
> a dll.  Then they can create an instance and the form runs.  The reason I 
> need this is because in their main application they may be executing a 
> lengthy database query.  I wanted to provide a progress bar that shows that 
> the application has not hung, but is retrieving data.  They also want to use 
> this when they download files, to indicate things are going well.
> 

Have you considered having the thread do the "length database query" and 
posting status messages to the main application?  I have used this 
method and it works quite well.
Technical Details
Message-ID: <48567d47$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder.news-service.com!feed.xsnews.nl!border-2.ams.xsnews.nl!ecngs!feeder2.ecngs.de!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4853e32c$1@newsgroups.borland.com> <4853e7cb$1@newsgroups.borland.com> <485403a7@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,de2c8c187b28c177
X-Google-Attributes: gid10cc67,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Mon, 16 Jun 2008 09:48:18 -0500
From: danzer <.>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080313 SeaMonkey/1.1.9
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: VCL Form inside TThread->Execute
References: <4853e32c$1@newsgroups.borland.com> <4853e7cb$1@newsgroups.borland.com> <485403a7@newsgroups.borland.com>
In-Reply-To: <485403a7@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 24.96.229.17
Message-ID: <48567d47$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1213627719 24.96.229.17 (16 Jun 2008 07:48:39 -0700)
Lines: 16
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder.news-service.com!feed.xsnews.nl!border-2.ams.xsnews.nl!ecngs!feeder2.ecngs.de!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail