wmf2emf problemi in compilazione

Moderator: Enrico Maria Giordano

wmf2emf problemi in compilazione

Postby Romeo » Wed Jan 20, 2016 4: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 );
}

*
Romeo
 
Posts: 340
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Return to All products support

Who is online

Users browsing this forum: No registered users and 2 guests