LVectorMemoryFile::LVectorMemoryFile

#include "ltwrappr.h"

L_VOID LVectorMemoryFile::LVectorMemoryFile(L_VOID)

L_VOID LVectorMemoryFile::LVectorMemoryFile(pVector)

LVectorBase L_FAR * pVector;

/* pointer to a vector object */

Constructs and initializes the different variables of the class object.

Parameter

Description

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

LVKRN
LTFIL

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:

LVectorMemoryFile::~LVectorMemoryFile, Class Members

Example

This is an example for LVectorMemoryFile::LVectorMemoryFile():

L_VOID Example49(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
}

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