We can now add read-only properties MaxRecs and NumRecs to interface IReadPhBook. MaxRecs holds the maximum number of phone records,
and NumRecs holds the number of phone records currently stored in PhBookObj.
The following simulation will step you through the process of adding both MaxRecs and NumRecs. Add Maxrecords Num Records
In PhBook.idl, IReadPhBook is now:
Both MaxRecs and NumRecs are marked with the propget attributes. Visual C++ will generate methods get_MaxRecs and get_NumRecs.
The ClassView pane of the Workspace windows now shows now contains: