Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS Vector C++ Class Library Help

LVectorBase::IsAllocated

Show in webframe

#include "ltwrappr.h"

virtual 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;
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.