thank you all for helping me... I finaly got the some of a b.... to work hehehe here is what i did to get it working for all those people who mite get stuck on this and are new like me. CFrameWnd* pFrame=(CFrameWnd*)AfxGetMainWnd(); CTestView *p = (CTestView *)pFrame->GetActiveView(); p->LoadImages(str); and this get the current CFormView window and everything works..... thanks all guys....for all your help ;);):):):):) E3