🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Lots of data

#12057
From: M. Finch
Date: Thu, 01 Jan 2004 13:14
28 lines
2126 bytes
I am continuing to work on an application that shows the world map, and
hopefully someday be able to display the active aircraft in the US and
possibly elsewhere.  My test file only has 160 points, but certainly someday
there could be thousands to plot.

In drawing my test file, I have a small bitmap that I've found (120x100) to
display.  I've tried Bitblt to dispay the 160 points, but it took a few
seconds to go through the 160 points in the list to display them.
Alternatively I've drawn a crude picture using MoveToEx and LineTo which
took negligible time to draw, but the display is crude at best.

I'm interested in finishing this using API if possible.  But the BitBlt MUST
go.  Any ideas on what I can use that would be faster?  I'm aware that it
would be faster using DirectX or OpenGL, but I'd like to finish this first.

Here's the code that I'm using to draw the Bitmap.  I work my way through
the list calling this for each point.
-------
  HDC hdcMem = CreateCompatibleDC(NULL);
  HBITMAP hbmT = SelectBitmap(hdcMem,hbm);

  BITMAP bm;
  GetObject(hbm,sizeof(bm),&bm);

  BitBlt(hdc,0,0,bm.bmWidth,bm.bmHeight,hdcMem,0,0,SRCCOPY);
-------

Thanks in advance!!
Technical Details
Message-ID: <3ff41d43$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!news-xfer1.atl.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,894ad098f15950e6,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-01-01 05:32:44 PST
Reply-To: "M. Finch" <mlfsup@nospam.comcast.net>
From: "M. Finch" <mlfsup@nospam.comcast.net>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Lots of data
Date: Thu, 1 Jan 2004 08:14:53 -0500
Lines: 30
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: 68.51.77.211
Message-ID: <3ff41d43$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1072962883 68.51.77.211 (1 Jan 2004 05:14:43 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!news-xfer1.atl.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail