• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 416
  • Last Modified:

GetMetaFile - hint

Is it possible to use function GetMetaFile together
with placeable metafiles (.wmf) or must i convert them
to .emf
0
ThomasLindberg
Asked:
ThomasLindberg
  • 6
  • 4
1 Solution
 
kswinneyCommented:
Thomas, I believe the GetMetaFile function is for WMF metafiles.  

The counterpart for EMF (enhanced) metafiles is GetEnhMetafile.

HTH.
0
 
ThomasLindbergAuthor Commented:
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
 
kswinneyCommented:
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
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
ThomasLindbergAuthor Commented:
Hello kswinney !

What is the result of your test ?

Thomas
0
 
ThomasLindbergAuthor Commented:
Hello kswinney !

Are you still breading?

Thomas
0
 
kswinneyCommented:
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
 
ThomasLindbergAuthor Commented:
Hello kswinney !
Here is my e-mail address
thomas.lindberg@ffvaerotech.ffv.se
0
 
kswinneyCommented:
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
 
ThomasLindbergAuthor Commented:
Hello kswinney !

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

0
 
ThomasLindbergAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 6
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now