This function creates an input stream from an input file.
BOOL pascal _export fpFileToInputStreamCreate( void *pContext, char *pszFileName, KVInputStream *pInput);
|
A pointer returned from fpInit() or fpInitWithLicenseData(). |
|
A pointer to the name of the input file to be converted. |
|
A pointer to the developer-assigned instance of |
If the call is successful, the return value is TRUE
.
If this call is unsuccessful, the return value is FALSE
. Processing is halted.
After the conversion is complete, call fpFileToInputStreamFree()
to free the memory allocated by this function.
The following sample code is from the cnv2xml
sample program:
if(!(*KVXMLInt.fpFileToInputStreamCreate)(pKVXML, argv[i++], &Input)) { printf("Error creating input stream\n"); (*KVXMLInt.fpShutDown)(pKVXML); mpFreeLibrary(hKVXML); return (5); }
|