L_MrcGetPagesCount

#include "ltsgm.h"

L_LTSGM_API L_INT L_MrcGetPagesCount(pszFileName, pnPages)

Gets the number of pages in an MRC file.

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 20.0.2019.9.19
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Mixed Raster Content (MRC) C API Help