LVectorBase::IsFileNameEnabled

Summary

Determines whether the use of the internal file name is enabled or disabled.

Syntax

#include "ltwrappr.h"

L_BOOL LVectorBase::IsFileNameEnabled(void);

Returns

Value Meaning
TRUE The file name is enabled.
FALSE The file name is not enabled.

Comments

Call this function to check if the use of the internal file name is enabled or disabled.

Required DLLs and Libraries

See Also

Functions

Topics

Example

L_INT LVectorBase__IsFileNameEnabledExample(HWND hWnd) 
{ 
   L_INT    nRet; 
   L_TCHAR  szFileName[_MAX_PATH]; 
   L_UINT   uLen; 
 
   LVectorBase myVectorBase; 
 
   myVectorBase.SetFileName(MAKE_IMAGE_PATH(TEXT("random.dxf"))); 
   if (myVectorBase.IsFileNameEnabled()) 
   { 
      MessageBox(hWnd, TEXT("FileName is enabled"), TEXT(""), MB_OK); 
   } 
   else 
   { 
      MessageBox(hWnd, TEXT("FileName NOT enabled.\nEnabling..."), TEXT(""), MB_OK); 
      myVectorBase.EnableFileName(); 
   } 
 
   nRet = myVectorBase.Load(); 
   if(nRet != SUCCESS) 
      return nRet; 
 
   //Get the file name--it is "random.dxf" 
   nRet = myVectorBase.GetFileName(szFileName, &uLen); 
   if(nRet != SUCCESS) 
      return nRet; 
 
   return SUCCESS; 
} 
Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 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.