Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wrapper classes

Status
Not open for further replies.

fatcodeguy

Programmer
Feb 25, 2002
281
CA
Hi! I hear about wrapper classes for APIs. I was wondering what that meant... Thanks
 
Study some MFC - it effectively is a lib of wrapper classes for the win32api.
wrapper classes help you program using the OO paradigm, and not the procedural programing that win32api is based on.
example:
if you want to work with strings you would define myStr char[100] and perform operations on it like: strlen(myStr) etc.
while if you use CString class wrapper for strings you will have you char[] wrapped in the class and perform actions on it using class conventions: CString myStr; myStr.Empty()
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top