This function creates an output stream from an output file.
BOOL pascal _export fpFileToOutputStreamCreate( void *pContext, char *pszFileName, KVOutputStream *pOutput );
|
|
A pointer returned from fpInit() or fpInitWithLicenseData(). |
|
|
A pointer to the name of the output file to create. |
|
|
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 fpFileToOutputStreamFree() to free the memory allocated by this function.
The following sample code is from the cnv2xml sample program:
if (!(*KVXMLInt.fpFileToOutputStreamCreate)(pKVXML, argv[i], &Output))
{
printf("Error creating output stream\n");
(*KVXMLInt.fpFileToInputStreamFree)(pKVXML, &Input);
(*KVXMLInt.fpShutDown)(pKVXML);
mpFreeLibrary(hKVXML);
return 6;
}
|
|