Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C or C++ dll
Message
 
 
À
17/05/2016 15:50:52
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Divers
Thread ID:
01636486
Message ID:
01636545
Vues:
150
FoxyPreviewer uses libharu.dll


>Usefull, thank you.
>i get this example follow form libharu.dll in a vfp class definition to decorate the subject
>this declare some functions in the libhpdf.dll (a C dll wrote known as libharuPDF library and converting to PDF)
>
>
>*draw a circle at coord x,y with rayon=ray
>declare HPDF_STATUS HPDF_Page_Circle in libhpdf.dll HPDF_Page	page ;
>			,HPDF_REAL	 x ;
>			,HPDF_REAL	 y ;
>			,HPDF_REAL	 ray
>
>procedure Page_Circle(page as HPDF_Page ;
>			,x as HPDF_REAL ;
>			,y as HPDF_REAL	;
>			,ray as HPDF_REAL ) as HPDF_STATUS
>		this.status =	HPDF_Page_Circle(m.page,m.x,m.y,m.ray)
>		return this.status
>endproc
><pre>
>
>or this in same registry and in class definition.
><pre>
>*load a JPEG image from a file
>declare HPDF_Image HPDF_LoadJpegImageFromFile in libhpdf.dll HPDF_Doc pdf, string filename
>procedure LoadJpegImageFromFile(filename AS String ) as HPDF_Image
>		retval = HPDF_LoadJpegImageFromFile(this.doc, m.filename)
>		if m.retval = 0
>			this.status = this.GetError()
>		endif 
>		return m.retval	
>endproc
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform