
struct SomeSettings { int m_aMember; SomeOtherStruct m_struct; vector<string> m_strings; };
the neccessary data adapter definition which you must include in a source file looks like this
IMPLEMENT_CONTAINER_ADAPTER(vector<string>)
BEGIN_DATA_ADAPTER(SomeSettings) PROP(m_aMember) PROP(m_struct) PROP(m_strings) END_DATA_ADAPTER()
Sure thing, but how about *true* bindings? http://www.torjo.com/win32gui/save_dlg.html (if you download the code, you'll find quite a few examples: examples/smart_dialogs) Note that you can add correspondences directly to your data + validation code (no macros whatsoever). Best, John -- John Torjo, Contributing editor, C/C++ Users Journal -- "Win32 GUI Generics" -- generics & GUI do mix, after all -- http://www.torjo.com/win32gui/ -- v1.5 - tooltips at your fingertips (work for menus too!) + bitmap buttons (work for MessageBox too!) + tab dialogs, hyper links, lite html