Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C or C++ dll
Message
From
17/05/2016 15:50:52
 
 
To
17/05/2016 14:32:43
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01636486
Message ID:
01636536
Views:
146
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform