Re: Fixing EMF images that no longer work with KB835732

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Petteri Kurki (Petteri.Kurki_at_no_spam_please.esmi.com)
Date: 04/22/04


Date: Thu, 22 Apr 2004 10:42:53 +0300


"Michael Harvey" <michaelharvey.nospam@sympatico.ca> kirjoitti viestissä
news:Ox4Rit$JEHA.620@tk2msftngp13.phx.gbl...
> All EMF records must a multiple of 4 bytes in length. If you follow this
> rule, I think KB835732 will not break your app. Particularly look at
records
> with strings that could easily be constructed not a multiple of 4 bytes.

Thanks for the reply, Michael!

At which point do you think Windows verifies the record sizes? Load time (I
mean loading from the .EMF file)? I guess it's not worth enumerating the
metafile and fixing the records on the fly before playing them into the
metafile.

It seems most my metafiles contain records with sizes not multiple of 4
bytes. I think what I need is a tool that fixes the metafile by reading the
records, correcting the sizes and writing them to another file with the
correct size.

The problem would then be how hard it is to handle the records without
Windows' help...

    -Pete/Finland



Relevant Pages

  • Re: Variable-sized pages and TLB
    ... support multiple page sizes? ... supported pages sizes: 4KiB and 4MiB and they are handled ... Multiple Page Sizes On a Skewed Associative TLB" ...
    (comp.arch)
  • Serious GDI Multithreading bug while printing to metafiles
    ... Customers of ours reported a bug in our software that causes metafiles ... metafile DC and the printer DC. ... When run in multiple concurrent threads, however, some of the ... Strange is, the CreateFont(), SelectFont, ..., DeleteFontis being ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Delete all rows where column A is blank
    ... I will be adding this to another macro and be using it multiple ... times for spreadsheets of different sizes. ...
    (microsoft.public.excel.programming)
  • Multiple page sizes in one Publsiher document
    ... I am creating a document that has to have multiple page sizes and ... layouts (some pages are letter and some are legal; some are portrait ...
    (microsoft.public.word.tables)
  • Re: When will we have diff page sizes?
    ... leeb@xxxxxxxxxxxxxxxxxxx (Lee Blevins) wrote: ... have page sizes that are not equal in a document. ... When Illustrater gets multiple pages. ...
    (comp.publish.prepress)