L_MrcGetPagesCount

Summary

Gets the number of pages in an MRC file.

Syntax

#include "ltsgm.h"

L_LTSGM_API L_INT L_MrcGetPagesCount(pszFileName, pnPages)

Parameters

L_TCHAR * pszFileName

Character string containing the name of the MRC file.

L_INT * pnPages

Pointer to a variable to be updated with the number of pages from the MRC file.

Returns

Value Meaning
SUCCESS The function was successful.
<= 0 An error occurred. Refer to Return Codes

Comments

Use this function to get the number of pages in an MRC file.

Required DLLs and Libraries

See Also

Functions

Topics

Example

L_INT MrcGetPagesCountExample(HWND hWnd,L_TCHAR* pszFileName) 
{ 
   L_INT    nPages, nRet; 
   L_TCHAR  szMessage[256]; 
 
   nRet = L_MrcGetPagesCount(pszFileName, &nPages); 
   if (nRet != SUCCESS) 
   { 
      lstrcpy(szMessage, TEXT("Error getting pages count")); 
      return nRet; 
   } 
   else 
      wsprintf(szMessage, TEXT("%s file contains %d pages"), pszFileName, nPages); 
 
   MessageBox(hWnd, szMessage, NULL, MB_OK); 
 
   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 Mixed Raster Content (MRC) C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.