tejaswini.g wrote:
long x=QuerySiblings(1,(long)&m_querySibling); CString* pString=(CString*)x; pStr=*pString;
QuerySiblings() does not return a value that can be cast to a CString. If page two wants to know the name that was selected on page one, store that name in the sheet (the common link between pages).
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb