Article View: comp.os.ms-windows.programmer.tools.owl
Article #57HELP: Modeless Dialog while Reading Serial PORT
From: Enrique BLANCO
Date: Wed, 17 Jun 1998 00:00
Date: Wed, 17 Jun 1998 00:00
22 lines
1624 bytes
1624 bytes
Hi, I must read the serial port in one application and I would like to be able to change and select some options on my main window (which is a dialog box). If I run (with a button) the function that reads the serial port then there is no way to operate on the main dialog box due that the process is busy on reading the serial port. I thought creating a MODELESS dialog box and launching from there the function which reads the port I would overtake the problem, but it does NOT do what I wanted. Again, I've got my main dialog box block until the read finishes. I see two options now, one is trying to do the read as a non-overlapped way, and the other is to use Threads (using TThread) I guess... Could someone indicate if there is another way to solve this problem? If the above two options are the most valid, could I have any good example of using TThread ?? Thanks in advance, Enrique BLANCO
Technical Details
Message-ID:
<358820B5.98513571@cern.ch>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 108ebe,b5085bfe15c9ca0d,start X-Google-Attributes: gid108ebe,public X-Google-Thread: fe201,b5085bfe15c9ca0d,start X-Google-Attributes: gidfe201,public From: Enrique BLANCO <Enrique.Blanco@cern.ch> Subject: HELP: Modeless Dialog while Reading Serial PORT Date: 1998/06/17 Message-ID: <358820B5.98513571@cern.ch> X-Deja-AN: 363633139 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-Complaints-To: news@sunnews.cern.ch X-Trace: sunnews.cern.ch 898113719 26289 (None) 137.138.118.190 Organization: CERN Mime-Version: 1.0 Newsgroups: comp.os.ms-windows.programmer.tools.owl,borland.public.cpp.owl