Solved

GetMetaFile - hint

Posted on 1998-10-14
10
397 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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Event ID 10010 3 69
WPF MainWindow update textbox from another class... 6 151
SSIS 2010 Convert to SSIS 2013 On Different Box 3 61
How do ASP.NET and MVC work together? 4 65
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 …
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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…

821 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