L_VecFree

#include "lvkrn.h"

L_INT EXT_FUNCTION L_VecFree(pVector)

pVECTORHANDLE pVector;

/* pointer to a vector handle */

Frees storage allocated for the specified vector image.

Parameter

Description

pVector

Pointer to a vector handle referencing the vector image to free.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

This function should be called when your program no longer needs the vector data.

Required DLLs and Libraries

LVKRN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

L_VecInit, L_VecCopy, L_VecLoadFile

Example

/* This example loads a DXF file and convert into WMF. */

void ConvertDXFToWMF( L_TCHAR L_FAR *pszDXFFile, L_TCHAR L_FAR *pszWMFFile )
{
   VECTORHANDLE   TmpVec;

   /* Load DXF file. */
   L_VecLoadFile( pszDXFFile, &TmpVec, NULL, NULL );

   /* Convert to WMF */
   L_VecSaveFile( pszWMFFile, &TmpVec, FILE_WMF, NULL );

   /* Free the vector */
   L_VecFree ( &TmpVec );
}