Determines whether this class object has an allocated vector.
#include "ltwrappr.h"
virtual L_BOOL LVectorBase::IsAllocated(void)
Value | Meaning |
---|---|
TRUE | The vector is allocated. |
FALSE | The vector is not allocated. |
Use this function to check whether this class object has an allocated vector.
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;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document