Article View: borland.public.cppbuilder.nativeapi
Article #12400Re: Non-visible program
From: Remy Lebeau (TeamB)
Date: Sat, 06 Dec 2003 04:01
Date: Sat, 06 Dec 2003 04:01
37 lines
1921 bytes
1921 bytes
"nicolasr" <nicolasrNOSPAMATSIGNgmx.net> wrote in message news:3fd12b98$1@newsgroups.borland.com... > 1) What type of application should I use in BCB? > VCL app and remove the main form? That is one option. That will basically leave you with an empty WinMain() (well, one that doesn't actually do anything, that is), and the VCL library linked in. The same effect can be reached by simply using the Console Wizard instead, choosing to make a C++ non-GUI console app with VCL enabled. > Pure WinAPI with a simple message loop in WinMain? If you are not using windows/forms, then there is no need for a message queue. > 2) My first idea was writing a WinMain function that > uses MsgWaitForMultipleObjects() in a loop. The loop would be unnecessary. > But, does the program actually need to process any Windows > messages if there is no window? No. > Would WaitForMultipleObejects be enough? Yes. > Should I handle WM_QUIT? No need, because there is no message queue needed to begin with. Gambit
Technical Details
Message-ID:
<3fd15371@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fd12b98$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,1d2aeb96c0d7ce05 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-12-05 20:09:00 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3fd12b98$1@newsgroups.borland.com> Subject: Re: Non-visible program Date: Fri, 5 Dec 2003 20:01:05 -0800 Lines: 39 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.23.78.224 Message-ID: <3fd15371@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1070682993 67.23.78.224 (5 Dec 2003 19:56:33 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail