Solved

GetMetaFile - hint

Posted on 1998-10-14
10
406 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 

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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

636 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