Hi,
I'm trying to call a DLL that is a USPS encoder for producing a Intelligent Mail Barcode. They gave me the DLL and a C example but I can't seem to figure out how to translate the C code into VFP code.
Here's a partial listing of the C code:
What I am looking for is the declaration and calling syntax, basically reproducing the above in VFP. It will be a huge help if someone can get me pointed in the right direction on this.
Thanks.
I'm trying to call a DLL that is a USPS encoder for producing a Intelligent Mail Barcode. They gave me the DLL and a C example but I can't seem to figure out how to translate the C code into VFP code.
Here's a partial listing of the C code:
Code:
char TrackString[21];
char RouteString[12];
char BarString[66];
int RetCode;
int USPS4CB( char *TrackPtr, char *RoutePtr, char *BarPtr);
memcpy(TrackString,"53379777234994544928",20);
TrackString[20] = '\0';
memcpy(RouteString,"51135759461",11);
RouteString[11] = '\0';
memset(BarString, ' ', sizeof(BarString)); /* Prime blanks! */
BarString[65] = '\0'; /* Set null */
RetCode = USPS4CB(TrackString,RouteString,BarString);
printf("Outputs are: \n");
printf("USPS4CB RetCode is: %i\n",RetCode);
printf("Encoded Bar String is: %s\n",BarString);
What I am looking for is the declaration and calling syntax, basically reproducing the above in VFP. It will be a huge help if someone can get me pointed in the right direction on this.
Thanks.