LFile::LFile

#include "ltwrappr.h"

L_VOID LFile::LFile(L_VOID)

L_VOID LFile::LFile(pLBitmap)

L_VOID LFile::LFile(pLBitmap, pFileName)

LBitmapBase L_FAR * pLBitmap;

/* pointer to a LEAD bitmap object */

L_TCHAR L_FAR * pFileName;

/* file name */

Constructs and initializes the member variables of the class object.

Parameter

Description

pLBitmap

Pointer to a LEAD bitmap object, used to initialize the LFile object.

pFileName

Character string that contains the name of the file.

Returns

None

Comments

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

LFile::LFile(pLBitmap) also sets the bitmap for the class object.

LFile::LFile(pLBitmap, pFileName) also sets the bitmap for the class object and the filename to associate with the object.

Required DLLs and Libraries

LTFIL
File format DLLs

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:

LFile::~LFile, Class Members

Example

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

L_VOID MyFunction()
{
    // this will call the default constructor and destructor when it is out of scope
    LFile LeadFile;

    //…
}

This is an example for LFile::LFile(pLBitmap):

L_VOID MyFunction()
{
   LBitmapBase   LeadBitmap ;
   LeadBitmap.Load (TEXT("Image1.cmp"), 24, ORDER_RGB) ;

   LFile  LeadFile (&LeadBitmap) ;

    //…
    //…
}

This is an example for LFile::LFile(pLBitmap, pFileName):

L_INT  TestFunction(L_TCHAR L_FAR * pFileName)
{
     LBitmapBase   LeadBitmap ;
     LeadBitmap.Load (TEXT("Image1.cmp"), 24, ORDER_RGB) ;

     LFile  LeadFile (&LeadBitmap, pFileName) ;
   
     // do process here …
     // ….  

     return SUCCESS ;
}