🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Metafile parsing

#16944
From: Joe C. Hecht
Date: Wed, 16 Apr 2003 02:57
47 lines
2399 bytes
We tried using EnumEnhMetaFile (and the non-enhanced version) for a simple
metafile that would lock up 95/98 and ME machines. Turned out the even loading
the metafile (without eenumerating) using Windows functions would result in severe
memory leaks.

We feel it is best to read the file raw, and enumerate them yourself (although the docs are
often incomplete or totally incorrect).

Joe


Delphi, graphics, and printing specialist available - $35/hr
http://www.code4sale.com/codeit/index.htm


----- Original Message -----
From: "Adam Versteegen" <no@email.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Sent: Sunday, April 13, 2003 6:56 PM
Subject: Re: Metafile parsing


> Ron Sawyer wrote:
>
> > I am looking for sample code to parse window's metafiles.  I need to
> > pull out each record to be able to convert it to another format.  Does
> > anyone know of a way to do this?
>
>
> Hello Ron,
>
> Take a loot at:
>
> http://www.efg2.com/Lab/Library/Delphi/Graphics/FreddyDarsonvilleMetafileRot
> ation.TXT
>
> Its in delphi and shows a method (or the start of) for rotating metafiles.
> In order to properly rotate them you need to enumerate each of the records,
> so you will see how to do what you need.
>
> The main function you will need to come to terms with is EnumEnhMetaFile().
>
> Let us know if you have any problems.
>
> Vesty.
>
>
Technical Details
Message-ID: <3e9cc69a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3E99E8E7.9023C1E0@aol.com> <3e99f91c@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,6812a614b7c2d50b
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-04-15 20:01:43 PST
Reply-To: "Joe C. Hecht" <joehecht@code4sale.com>
From: "Joe C. Hecht" <joehecht@code4sale.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3E99E8E7.9023C1E0@aol.com> <3e99f91c@newsgroups.borland.com>
Subject: Re: Metafile parsing
Date: Tue, 15 Apr 2003 21:57:30 -0500
Lines: 49
Organization: Joe Hecht Associates
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: 68.1.73.129
Message-ID: <3e9cc69a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1050461850 68.1.73.129 (15 Apr 2003 19:57:30 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail