Thank you Ken for replying.
As for the rest of you ladies who didn't bother to chime in, I found the answer...And it was a DAMN easy one. Well, not for a MFC newb like myself.
CIMGOPTView is my main view in my SDI. wndTree is my Shell Tree Control. ScanRemote() is a function in my view class.
HTREEITEM filehnd = m_wndTree.GetSelectedItem();
CIMGOPTView * view = (CIMGOPTView *)GetActiveView();
if(view == NULL)
I tried everything from:
CIMGOPTView* i = dynamic_cast<CIMGOPTView*>( this );
And even shared variables between classes. And all it took was a simple bit of code that any experienced MFC programmer should be familiar with.
Sorry if I am coming off sounding like a dick, but I don't have many hairs left on my head after this one troubleshoot. Do a search and tell me if you come up with this answer. I had to dig through source code examples all day to find this.