Click here to Skip to main content
13,558,244 members
Click here to Skip to main content
Add your own
alternative version


12 bookmarked
Posted 20 Jun 2005

EMF to WMF conversion using GDI+

, 20 Jun 2005
Rate this:
Please Sign up or sign in to vote.
A simple program that converts EMF to WMF using GDI+. This project can also be used as a simple kick-off for a console GDI+ program.

Sample Image


This program reads a graphics file in EMF format and writes it out as WMF. It can be useful as a basic command line tool or as a starting off point for writing a GDI+ program. It also has an example of char to wchar string conversion.


A legacy application I support requires WMF as input. One day the upstream application that provides graphical input was "upgraded" and started producing EMF files instead of WMF files. Having spent some time away from C++ and GDI+, it was not a simple process to cobble together this simple program in a format. The bulk of the program was taken from an MSDN example, but actually getting it to compile and link was the majority of the time sink. I used some examples from CodeProject to get me started, but what was missing was a simple tiny toy console project and solution that worked.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Martin Serrano
Web Developer
United States United States
No Biography provided

You may also be interested in...


Comments and Discussions

QuestionStart Pin
Member 1006051217-May-13 12:49
memberMember 1006051217-May-13 12:49 
Generalunicode probles Pin
Oleg Tarlapan8-Feb-06 3:43
memberOleg Tarlapan8-Feb-06 3:43 
GeneralRe: unicode probles Pin
Member 19535834-Nov-10 7:12
memberMember 19535834-Nov-10 7:12 
GeneralBad archive Pin
Oleg Tarlapan7-Feb-06 8:35
memberOleg Tarlapan7-Feb-06 8:35 
GeneralRe: Bad archive Pin
Martin Serrano7-Feb-06 9:21
memberMartin Serrano7-Feb-06 9:21 
GeneralRe: Bad archive All right Pin
Oleg Tarlapan8-Feb-06 3:30
memberOleg Tarlapan8-Feb-06 3:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web03-2016 | 2.8.180515.1 | Last Updated 21 Jun 2005
Article Copyright 2005 by Martin Serrano
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid