FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index All products support wmf2emf problemi in compilazione
Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
wmf2emf problemi in compilazione
Posted: Wed Jan 20, 2016 04:59 PM

Ciao
Ho un esempio, forse tuo, che non riesco a compilare con FWH 15.12

Continua a dirmi che non trova il file FWHARB.H, eppure l'ho copiato anche nella cartella.

Un aiutino ?

BCC7
Harbour 3.20dev

Grazie

**** WMF2EMF.PRG
*

pragma BEGINDUMP

include "WinTen.h"

include "Windows.h"

include "HbApi.h"

include "ClipApi.h"

include <windows.h>

HB_FUNC( WMFTOEMF ) // ( cWmf, cEmf )
{
HMETAFILE hWMF = GetMetaFile( hb_parc( 1 ) );

UINT nSize = GetMetaFileBitsEx( hWMF, 0, NULL );

LPVOID lpvData = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, nSize );

HENHMETAFILE hEMF, hEMF2;

GetMetaFileBitsEx( hWMF, nSize, lpvData );

hEMF = SetWinMetaFileBits( nSize, lpvData, 0, NULL );

HeapFree( GetProcessHeap(), 0, lpvData );

hEMF2 = CopyEnhMetaFile( hEMF, hb_parc( 2 ) );

DeleteEnhMetaFile( hEMF );
DeleteEnhMetaFile( hEMF2 );

DeleteMetaFile( hWMF );

}

*

Continue the discussion