Solved

GetMetaFile - hint

Posted on 1998-10-14
10
394 Views
Last Modified: 2013-12-03
Is it possible to use function GetMetaFile together
with placeable metafiles (.wmf) or must i convert them
to .emf
0
Comment
Question by:ThomasLindberg
  • 6
  • 4
10 Comments
 
LVL 2

Accepted Solution

by:
kswinney earned 100 total points
ID: 1415233
Thomas, I believe the GetMetaFile function is for WMF metafiles.  

The counterpart for EMF (enhanced) metafiles is GetEnhMetafile.

HTH.
0
 

Author Comment

by:ThomasLindberg
ID: 1415234
So far so god,  but then why do i get  the return value of zero when i use that function in my application.
My application is running on NT4.
Additional information: I am porting code from 16-bit to 32-bit.

0
 
LVL 2

Expert Comment

by:kswinney
ID: 1415235
I'm not sure.  When I get to the office tomorrow I'll write a sample app and run it on NT4.  (I only have Win95 here at home.)

I'll let you know how it goes.
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 

Author Comment

by:ThomasLindberg
ID: 1415236
Hello kswinney !

What is the result of your test ?

Thomas
0
 

Author Comment

by:ThomasLindberg
ID: 1415237
Hello kswinney !

Are you still breading?

Thomas
0
 
LVL 2

Expert Comment

by:kswinney
ID: 1415238
Sorry, Thomas.  I'll e-mail myself a reminder to look at it tomorrow and I'll e-mail you the sample app.  Make sure you post your e-mail address and I'll send you the code tomorrow.

Ken.
0
 

Author Comment

by:ThomasLindberg
ID: 1415239
Hello kswinney !
Here is my e-mail address
thomas.lindberg@ffvaerotech.ffv.se
0
 
LVL 2

Expert Comment

by:kswinney
ID: 1415240
Thomas,

It seems that you can't use "GetMetaFile" with placeable metafiles.  Though you can use it with .WMF metafiles, they can not be placeable.

I have a routine that will load a metafile... but if you have Dan Appleman's "VB Programmer's Guide to the Win32 API" it's in there also.  It's in the QuikDraw.BAS file... and it's called "LoadTheMetafile".  It should work in both 16 and 32-bit code.

Cheers!
0
 

Author Comment

by:ThomasLindberg
ID: 1415241
Hello kswinney !

Here is my  e-mail address
thomas.lindberg@ffvaerotech.ffv.se

0
 

Author Comment

by:ThomasLindberg
ID: 1415242
Hello kswinney !

If you don't mind please send me the routine that will load a metafile... I do not have Dan Appleman's "VB Programmer's Guide to the Win32 API" yet.

/thomas
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question