Article View: borland.public.cppbuilder.nativeapi
Article #8649Doing ProcessMessages() in the TServiceApplication
From: Rex Chen
Date: Mon, 04 Oct 2004 06:30
Date: Mon, 04 Oct 2004 06:30
28 lines
1525 bytes
1525 bytes
Hi I am implementing a win32 Service using TService Object and got some problems... In the typical Form based application (TApplication), I can do things like following... while( something_happened == false ) Application->ProcessMessages(); waiting for something happen and let the program do something else. but In the Service Application (TServiceApplication), there is no ProcessMessages() can do such thing, and once I have "Application->ProcessMessages();" in my program, compiler told me [C++ Error] Unit1.cpp(27): E2015 Ambiguity between 'Application' and 'Svcmgr::Application' Does anyone know how to do in the TServiceApplication Class ? Thanks. ^^
Technical Details
Message-ID:
<4160EDF4.3A72D30A@iii.org.tw>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,92472450cc43f536,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Message-ID: <4160EDF4.3A72D30A@iii.org.tw> Date: Mon, 04 Oct 2004 14:30:12 +0800 From: Rex Chen <chensc@iii.org.tw> X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Doing ProcessMessages() in the TServiceApplication Content-Type: text/plain; charset=big5 Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 140.92.9.43 X-Trace: newsgroups.borland.com 1096871545 140.92.9.43 (3 Oct 2004 23:32:25 -0700) Lines: 30 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail