Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

GetMetaFile - hint

Posted on 1998-10-14
10
Medium Priority
?
412 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 200 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
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 

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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
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…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

670 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