🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Multi-Thread HDC and video display

#2326
From: Robert G. Hoover
Date: Tue, 13 Mar 2007 01:27
36 lines
2251 bytes
Hi Jon,

I looked up the DrawDib stuff and implemented it fairly quickly as I already
have the bmiHeader as part of the bmInfo structure.

I found and adapted the example from the Platform SDK : Windows Multimedia page

DrawDibBegin  (hDD, hDC, ???, ???,
		&(LiveImage->bmInfo.bmiHeader),
		LiveImage->Width, LiveImage->Height, NULL);

DrawDibRealize(hDD, hDC, 0);


What should I use for the "MM_TEXT client units" fields in DrawDibBegin? This is
not my destination size in pixels, right?

For reference, LiveImage is my wrapper for a BITMAP and BITMAPINFO structure.

Thanks SO much!!!

Rob



Jonathan Benedicto wrote:
> 
> SetDIBitsToDevice is not a thread-safe function. I'd suggest looking up
> the DrawDib functions for simplicity because you'd need to convert your
> DIB to a DDB before blitting it to the screen.
> 
> The VCL draw functions aren't thread-safe either.
> 
> HTH
> 
> Jon
Technical Details
Message-ID: <45f5fdec$3@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.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> <45f5b4dc$1@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
Date: Mon, 12 Mar 2007 21:27:43 -0400
From: "Robert G. Hoover" <not.a.real.address@anywhere.sorry>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Multi-Thread HDC and video display
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> <45f5b4dc$1@newsgroups.borland.com>
In-Reply-To: <45f5b4dc$1@newsgroups.borland.com>
X-Enigmail-Version: 0.94.1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Antivirus: avast! (VPS 000723-1, 03/12/2007), Outbound message
X-Antivirus-Status: Not-Tested
NNTP-Posting-Host: 68.48.157.44
Message-ID: <45f5fdec$3@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1173749228 68.48.157.44 (12 Mar 2007 18:27:08 -0800)
Lines: 36
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.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