LVectorBase::IsAllocated

#include "ltwrappr.h"

L_BOOL LVectorBase::IsAllocated(void)

Determines whether this class object has an allocated vector.

Returns

TRUE

The vector is allocated.

FALSE

The vector is not allocated.

Comments

Use this function to check whether this class object has an allocated vector.

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:

Class Members

Topics:

Vector Images: Getting and Setting General Information

Example

L_INT LVectorBase__IsAllocatedExample(HWND hWnd)
{
   UNREFERENCED_PARAMETER(hWnd);
   LVectorBase*   pVector = new(LVectorBase);
   //This does not allocate the vector--just initializes VECTORHANDLE fields
   if (pVector->IsAllocated())
      MessageBox(hWnd, TEXT("Vector allocated"), TEXT(""), MB_OK);
   else
      MessageBox(hWnd, TEXT("Vector NOT allocated"), TEXT(""), MB_OK);
   //...
   return SUCCESS;
}