🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: VCL Form inside TThread->Execute

#74
From: Remy Lebeau (TeamB)
Date: Thu, 19 Jun 2008 19:47
14 lines
1599 bytes
"danzer" <.> wrote in message news:48567d47$1@newsgroups.borland.com...

> 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.

Agreed.  I would suggest having the DLL expose a status callback that the 
main app can pass in a handler function for.  The DLL can then execute the 
callback with status information as needed, and the app can display the 
status info however it wants.  Don't put the progress UI in the DLL at all.


Gambit 
Technical Details
Message-ID: <485ab830@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!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> <48567d47$1@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
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4853e32c$1@newsgroups.borland.com> <4853e7cb$1@newsgroups.borland.com> <485403a7@newsgroups.borland.com> <48567d47$1@newsgroups.borland.com>
Subject: Re: VCL Form inside TThread->Execute
Date: Thu, 19 Jun 2008 12:47:54 -0700
Lines: 16
Organization: Lebeau Software
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: 207.178.157.90
Message-ID: <485ab830@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1213904944 207.178.157.90 (19 Jun 2008 12:49:04 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail