Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.24
LEADTOOLS Mixed Raster Content (MRC) C DLL Help

L_MrcGetPagesCount

Show in webframe

#include "ltsgm.h"

L_LTSGM_API L_INT L_MrcGetPagesCount(pszFileName, pnPages)

L_TCHAR * pszFileName;

/* MRC file name */

L_INT * pnPages;

/* pointer to a variable to be updated */

Gets the number of pages in an MRC file.

Parameter

Description

pszFileName

Character string containing the name of the MRC file.

pnPages

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

Returns

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

LTSGM

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:

L_MrcSaveBitmap, L_MrcSaveBitmapT44, L_MrcLoadBitmap, L_MrcSegmentBitmap

Topics:

Loading Capabilities

 

MRC Bitmap Functions: Loading Pages

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;
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.