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.
Code:
HTREEITEM filehnd = m_wndTree.GetSelectedItem();
CString str;
m_wndTree.GetItemPath(str, filehnd);
CIMGOPTView * view = (CIMGOPTView *)GetActiveView();
if(view == NULL)
return;
view->ScanRemote(str.GetBuffer(str.GetLength()));
I tried everything from:
CIMGOPTView* i = dynamic_cast<CIMGOPTView*>( this );
to:
SendMessage(ID_STARTSCAN,0,(LPARAM)str.GetBuffer(s tr.GetLength()));
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.