🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Multi-Thread HDC and video display

#2331
From: Joe C. Hecht
Date: Tue, 13 Mar 2007 18:06
25 lines
2301 bytes
> SendDIBitsToDevice(ShellForm->Handle)? I use GetDC to get the DC of the window

Not trying to veer off track, but simply trying to provide a little advice.

If you mean SetDiBitsToDevice(), I would really recommend using StretchDIBits().

I say this as a guy who writes Windows graphic drivers, and can testify that:

1) Of the calls in a driver that work with DIBs, most (internally) are stubbed out to
eventually call a single output function in the driver (usually  modeled for StretchDIBits()),
so if speed is an issue, this is usually the fastest call.

2) The internals for the call that comes though  when you call SetDiBitsToDevice()
is so complex and so lacking in documentation, that some drivers get it wrong,
so there is a possibility for a lot of "flaky code". The support code is a nighmare.

Of course, the above only applies to monolithic graphic drivers.

Joe
-- 
Delphi, graphics, and printing specialist available - $35/hr
http://www.code4sale.com/codeit/index.htm
Joe Hecht Associates
121 Louise Drive
Crestview, FL 32536
Technical Details
Message-ID: <45f6e81b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <45f57403@newsgroups.borland.com> <45f59433$1@newsgroups.borland.com> <45f5973e$1@newsgroups.borland.com> <45f598bf$1@newsgroups.borland.com> <45f59c41$1@newsgroups.borland.com> <45f59e8e$1@newsgroups.borland.com> <45f5aca4@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,411b13b57e2ea81a
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Joe C. Hecht" <joehecht@code4sale.com>
From: "Joe C. Hecht" <joehecht@code4sale.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <45f57403@newsgroups.borland.com> <45f59433$1@newsgroups.borland.com> <45f5973e$1@newsgroups.borland.com> <45f598bf$1@newsgroups.borland.com> <45f59c41$1@newsgroups.borland.com> <45f59e8e$1@newsgroups.borland.com> <45f5aca4@newsgroups.borland.com>
Subject: Re: Multi-Thread HDC and video display
Date: Tue, 13 Mar 2007 13:06:14 -0500
Lines: 30
Organization: Joe Hecht Associates
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 68.1.74.238
Message-ID: <45f6e81b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1173809179 68.1.74.238 (13 Mar 2007 11:06:19 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail