i have a treeview on a class called CLeftView (both generated by mfc wizards...
CLeftView has a function called AddShape (i added this one)

and i have a class called CMainView (also generated by the wizard)

now to the question

in CMainView
i would like to call a this AddFunction
but i dont know how
i tried several ways of using pointers
and using CLeftVeiw::AddShape;
still havent got anywhere
i have also tried

auto_ptr<CLeftView> ptr;
ptr->AddShape
when this is called i get a memory access violation

me need a pointer to cleftview that doesnt give me memory access violiations

thanks