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
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