fpFileToOutputStreamCreate()
This function creates an output stream from an output file.
Syntax
BOOL pascal _export fpFileToOutputStreamCreate( void *pContext, char *pszFileName, KVOutputStream *pOutput );
Arguments
|
|
A pointer to an Export session that you initialized by calling fpInit(). |
|
|
A pointer to the name of the output file to create. |
|
|
A pointer to the developer-assigned instance of |
Returns
-
If the call is successful, the return value is
TRUE. -
If this call is unsuccessful, the return value is
FALSE. Processing is halted.
Discussion
-
After the conversion is complete, call
fpFileToOutputStreamFree()to free the memory allocated by this function. -
On Windows,
pszFileNamemust be in the local Windows code page.
Example
The following sample code is from the cnv2html sample program:
if (!(*KVHTMLInt.fpFileToOutputStreamCreate)(pKVHTML, argv[i], &Output))
{
printf("Error creating output stream\n");
(*KVHTMLInt.fpFileToInputStreamFree)(pKVHTML, &Input);
(*KVHTMLInt.fpShutDown)(pKVHTML);
mpFreeLibrary(hKVHTML);
return 6;
}