How do I access the piCurrentFrame and piFrameCount? I can get the DisplayNextPage and DisplayPreviousPage to work but I need to know the no. of frames in the TIFF file. When I try to access the piFrameCount, it errors.

In the help it says piFrameCount belongs to cGDIImage class and not cImageContainer. How do I relate the two?