User guide
Ethernet Developers Guide
840 USE 115 00 Version 1.0
 67
B.5  Class Descriptions 
The followin
g
 list describes the different classes: 
1. CSample_app.
 The Csample_app is the application class. This application 
was 
g
enerated b
y
 the application wizard, and the source is in the file 
sam_app.cpp. The class declaration is in sam_app.h. 
2. CMainFrame.
 The CMainFrame is derived from the MFC class 
CMDIFrameWnd and is the application’s main window frame. The source for 
CMainFrame is in mainfrm.cpp, and the declaration is in mainfrm.h.  The code 
for CMainFrame was initiall
y
g
enerated b
y
 the application wizard, and was 
modified to process window timer messa
g
es. 
3. CSample_doc. 
 The CSample_doc is the document class. The declaration is 
in sam_doc.h and the implementation is in sam_doc.cpp. 
4. CSample_View. 
 The CSample_View is the view of the document. It is 
derived from the CScrollView class. The declaration is in the sam_vw.h class, 
and it is implemented in the sam_vw.cpp, disp.cpp, tcp_hlp.cpp, and the 
tx_rx.cpp files. 
5. CIP_dig. 
 The CIP_dl
g
 class is the dialo
g
 class for 
g
ettin
g
 the IP address. It is 
derived from the CDialo
g
 class. The declaration is in the cip_dl
g
.h file and the 
implementation is in the cip_dl
g
.cpp file. Both of these files were 
g
enerated b
y
The Visual C++ class wizard. 
6. ClrStatsDlg.
 The ClrStatsDl
g
 class is the dialo
g
 class for clearin
g
 statistics. It 
is derived from the CDialo
g
 class. The declaration is in the cstatdl
g
.h file and 
the implementation is in the cstatdl
g
.cpp. Both of these files were 
g
enerated b
y
The Visual C++ class wizard. 
7. GetStatsDlg.
 The GetStatsDl
g
 class is the dialo
g
 class for 
g
et statistics. It is 
derivied from the CDialo
g
 class. The declaration is in the 
g
statdl
g
.h file and the 
implementation is in the 
g
statdl
g
.cpp file. Both of these files were 
g
enerated 
b
y
 The Visual C++ class wizard. 
8. CPollDlg. 
 The CPollDl
g
 class is the dialo
g
 class for determinin
g
 the poll 
period.  It is derived from the CDialo
g
 class. The declaration is in the polldl
g
.h 
file, and the implementation is in the polldl
g
.cpp file. Both of these files were 
g
enerated b
y
 The Visual C++ class wizard. 










