LVectorMemoryFile::LVectorMemoryFile

Summary

Constructs and initializes the different variables of the class object.

Syntax

#include "ltwrappr.h"

LVectorMemoryFile::LVectorMemoryFile(L_VOID)

LVectorMemoryFile::LVectorMemoryFile(pVector)

Parameters

LVectorBase * pVector

Pointer to a LEAD vector object, used to initialize the LVectorMemoryFile object.

Returns

None.

Comments

LVectorMemoryFile::LVectorMemoryFile() is a constructor for the LVectorMemoryFile class.

LVectorMemoryFile::LVectorMemoryFile(pVector) initializes the member variables using the pVector parameter.

Required DLLs and Libraries

See Also

Functions

Example

For an example for LVectorMemoryFile::LVectorMemoryFile(pVector), refer to LVectorMemoryFile::LoadMemory.
This is an example for LVectorMemoryFile::LVectorMemoryFile():

L_INT LVectorMemoryFile__LVectorMemoryFileExample(HWND hWnd) 
{ 
   LBuffer           Buffer; 
   LVectorMemoryFile VectorMemoryFile; 
   LVectorBase       Vector; 
 
   //Invalid until a vector is associated with the VectorMemoryFile object 
   if (VectorMemoryFile.IsValid()) 
      MessageBox(hWnd, TEXT("IsValid() returns TRUE"), TEXT(""), MB_OK); 
   else 
      MessageBox(hWnd, TEXT("IsValid() returns FALSE"), TEXT(""), MB_OK); 
 
   VectorMemoryFile.SetVector(&Vector); 
 
   //Now the VectorMemoryFile object is valid 
   if (VectorMemoryFile.IsValid()) 
      MessageBox(hWnd, TEXT("IsValid() returns TRUE"), TEXT(""), MB_OK); 
   else 
      MessageBox(hWnd, TEXT("IsValid() returns FALSE"), TEXT(""), MB_OK); 
 
   //destructor called when out of scope 
 
   return SUCCESS; 
} 

Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Vector C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.