🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Threads and CPU Usage

#14700
From: Joe Walker
Date: Sun, 03 Aug 2003 16:58
19 lines
1558 bytes
"Eugene Mayevski" <mayevski@eldos.org> wrote in message
news:3f2d37e3@newsgroups.borland.com...
> Joe Walker wrote:
>
> >  while (GetMessage(&msg, NULL, 0,0,PM_REMOVE))
> >     Dispatch(&msg)
>
> while (GetMessage(&msg, (DWORD) -1, 0,0))
>       Dispatch(&msg)
>
> This will get only thread message queue messages, not messages for the
> windows that "live" within that thread. Alternatively
>
Sorry but when I use (DWORD)-1, it says
[C++ Error] SCUThreadUnit.cpp(570): E2342 Type mismatch in parameter 'hWnd'
(wanted 'void *', got 'unsigned long')

JoeW
Technical Details
Message-ID: <3f2d3f48@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f2cfdce$1@newsgroups.borland.com> <3f2d37e3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,90beddda6c283d0e
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-03 10:09:36 PST
From: "Joe Walker" <__JoeW@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f2cfdce$1@newsgroups.borland.com> <3f2d37e3@newsgroups.borland.com>
Subject: Re: Threads and CPU Usage
Date: Sun, 3 Aug 2003 19:58:52 +0300
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 144.122.180.3
Message-ID: <3f2d3f48@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1059929928 144.122.180.3 (3 Aug 2003 09:58:48 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail