|
-
Jun 14th, 2001, 09:03 PM
#1
Thread Starter
Frenzied Member
Pointers
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|