Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOW CONVERT STRUC OF C++ TO VFP6

Status
Not open for further replies.

remsor

Programmer
Nov 5, 2002
101
PH
Hi VFP Experts,

How do i convert the struct of c++ into vfp6 structure, here is the dll function structure.

extern int FAR PASCAL u1_Scan(struct _T_Scan_Param * ScanP );
Main function called by the application to scan a document.
This function accepts as parameter a pointer to a structure of the following type:
//
// Scan Command Param structure
//
struct _T_Scan_Param {
char file1[256]; // front image file
char file2[256]; // back image file
char file3[256]; // not yet used
unsigned char *imgptr1; // not yet used
unsigned char *imgptr2; // not yet used
unsigned char *imgptr3; // not yet used
int compr_type; // default: 0 = no compression
int compr_quality; // default = 50
int imgptr_enable; // not yet used
};
The application program should declare a variable of this kind:
_T_Scan_Param ScanP;
char file1 = name of the front image file
char file2 = name of the rear image file
int compr_type = image compression selection: default: 0 = no compression; 1 =
Jpeg
int compr_quality = image compression quality: (0..100) default: 50
The other members are not yet used.

thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top