L_MrcGetPagesCount
#include "ltsgm.h"
L_INT EXT_FUNCTION L_MrcGetPagesCount(pszFileName, pnPages)
/* MRC file name */ | |
L_INT * pnPages; |
/* pointer to a variable to be updated */ |
Gets the number of pages in an MRC file. This function is available in the (Document/Medical) toolkits.
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_MrcSegmentBitmapExt |
Topics: |
|
|
Example
L_INT DisplayTotalPages(HWND hWnd, L_TCHAR L_FAR* pszFileName)
{
L_INT nPages, nRet;
L_TCHAR szMessage[256];
nRet = L_MrcGetPagesCount(pszFileName, &nPages);
if (nRet != SUCCESS)
strcpy(szMessage, TEXT("Error getting pages count"));
else
wsprintf(szMessage, "%s file contains %d pages", pszFileName, nPages);
MessageBox(hWnd, szMessage, NULL, MB_OK);
return nRet;
}