This link gives an example of how to use a wrapper class. The sample project is dialog based, but it might be helpful.

http://www.codeproject.com/cpp/C___XML_wrapper.asp