ImportWMF
Posted: Tue Feb 14, 2006 8:25 am
Hi all,
This is the first time that I register to this form, and would like
to wish to each and everyone the best.
Here is the problem:
(Please notice that I work for Paysoft Inc., a registered user of FWH)
We use FWH (Jan. 2006 download), and xHB Professional (Dec. 2005 download).
Our application uses approx. 600 forms in .WMF that are loaded at run time with function ImportWMF(cFile), and then we print whatever number and strings on the form. All these .WMF's have been created with Corel Draw.
It appears that it worked fine in the 16-bit environment, however, now that we are converting our program to 32-bits, we run into the problem of not been able to load those WMF's any more, due to the Enhanced Metafile (.EMF) used recently.
My question is: how can we resolve this problem without having to convert each and every form through Corel ?
I have notice that TENHMETA.PRG contains a Static Function WMF2EMF at the end, plus three DLL32 calls. Has this function anything to do with converting a WMF to EMF, and if yes how ?
The two of the DLL32 calls at the end of the file contain calls to GDI, that according to Microsoft are now not supported, such as GeTEnhMetaFileBitsEx (now GeTEnhMetaFileBits) and SetWinMetaFileBits (now SetMetaFileBits).
As you understand, I am lost now
How can I deal with this problem?
Any advise and a working sample would be appreciated, by me and my boss Mr. Chris Makris.
Thank you for your attention.
Evans Bartzokas
This is the first time that I register to this form, and would like
to wish to each and everyone the best.
Here is the problem:
(Please notice that I work for Paysoft Inc., a registered user of FWH)
We use FWH (Jan. 2006 download), and xHB Professional (Dec. 2005 download).
Our application uses approx. 600 forms in .WMF that are loaded at run time with function ImportWMF(cFile), and then we print whatever number and strings on the form. All these .WMF's have been created with Corel Draw.
It appears that it worked fine in the 16-bit environment, however, now that we are converting our program to 32-bits, we run into the problem of not been able to load those WMF's any more, due to the Enhanced Metafile (.EMF) used recently.
My question is: how can we resolve this problem without having to convert each and every form through Corel ?
I have notice that TENHMETA.PRG contains a Static Function WMF2EMF at the end, plus three DLL32 calls. Has this function anything to do with converting a WMF to EMF, and if yes how ?
The two of the DLL32 calls at the end of the file contain calls to GDI, that according to Microsoft are now not supported, such as GeTEnhMetaFileBitsEx (now GeTEnhMetaFileBits) and SetWinMetaFileBits (now SetMetaFileBits).
As you understand, I am lost now
How can I deal with this problem?
Any advise and a working sample would be appreciated, by me and my boss Mr. Chris Makris.
Thank you for your attention.
Evans Bartzokas