Click here to Skip to main content
15,920,503 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CCriticalSection question Pin
Paul Ranson5-May-04 8:39
Paul Ranson5-May-04 8:39 
GeneralRe: CCriticalSection question Pin
Paul Ranson5-May-04 8:40
Paul Ranson5-May-04 8:40 
Generalaccess other system resources on network by its IP Pin
Zeeshan Bilal5-May-04 1:26
Zeeshan Bilal5-May-04 1:26 
GeneralRe: access other system resources on network by its IP Pin
toxcct5-May-04 1:37
toxcct5-May-04 1:37 
GeneralRe: access other system resources on network by its IP Pin
David Crow5-May-04 2:25
David Crow5-May-04 2:25 
GeneralPublic Variable access : New problem Pin
Krugger4045-May-04 1:23
Krugger4045-May-04 1:23 
GeneralRe: Public Variable access : New problem Pin
jmkhael5-May-04 1:34
jmkhael5-May-04 1:34 
GeneralRe: Public Variable access : New problem Pin
Michael P Butler5-May-04 1:38
Michael P Butler5-May-04 1:38 
datastruct wrote:
Ps. I have tried whatever Mr Davy and Mr Chen told me but when i include the "datastructorView.h" file within lefttooldlg, i have a few errors telling me that some "doc" stuff are not recognised....

Due to the way the MFC AppWizard builds files, you will also have to include datastructorDoc.h before you include datastructorView.h


datastruct wrote:
((CDatastructorView *) AfxGetMainWnd())->m_main.Navigate"file://c:/datastructor/lectures/recursion_implementation.htm",0,0,0,0);

This looks wrong to me. AfxGetMainWnd returns a pointer to the m_pMainWnd which in a DocView architecture is usually the CMainFrame class.

I suspect your code needs to be more like this

CMainFrame* pFrame = (CMainFrame*) AfxGetMainWnd();
if(pFrame != NULL)
{
  CDatastructorView* pView = (CDatastructorView*) pFrame->GetActiveView();
  if(pView != NULL)
  {
    pView->m_main.Navigate"file://c:/datastructor/lectures/recursion_implementation.htm",0,0,0,0);
  }

}


Michael

CP Blog [^]

GeneralRe: Public Variable access : New problem Pin
nguyenvhn5-May-04 1:40
nguyenvhn5-May-04 1:40 
GeneralRe: Public Variable access : New problem Pin
User 66585-May-04 2:31
User 66585-May-04 2:31 
GeneralCreateFile returns error 32 Pin
BeeTel5-May-04 1:12
BeeTel5-May-04 1:12 
GeneralRe: CreateFile returns error 32 Pin
David Crow5-May-04 2:32
David Crow5-May-04 2:32 
GeneralRe: CreateFile returns error 32 Pin
Alexander M.,5-May-04 4:55
Alexander M.,5-May-04 4:55 
GeneralData Verification problem Pin
IceBerG715-May-04 0:55
IceBerG715-May-04 0:55 
GeneralRe: Data Verification problem Pin
Michael P Butler5-May-04 1:44
Michael P Butler5-May-04 1:44 
GeneralRe: Data Verification problem Pin
hasansheik5-May-04 2:32
hasansheik5-May-04 2:32 
GeneralBrowse For Folder settings - help required Pin
nihal_kashinath5-May-04 0:43
nihal_kashinath5-May-04 0:43 
Generalsocket Pin
Ni@m5-May-04 0:42
Ni@m5-May-04 0:42 
GeneralRe: socket Pin
toxcct5-May-04 1:41
toxcct5-May-04 1:41 
GeneralRe: socket Pin
Alexander M.,5-May-04 4:52
Alexander M.,5-May-04 4:52 
GeneralURGENT : Need help on WMV3. Pin
haust5-May-04 0:05
haust5-May-04 0:05 
GeneralRe: URGENT : Need help on WMV3. Pin
Mike Dimmick5-May-04 2:29
Mike Dimmick5-May-04 2:29 
GeneralRe: URGENT : Need help on WMV3. Pin
haust5-May-04 5:39
haust5-May-04 5:39 
GeneralProblem with CShadeButtonST Pin
Tran Thanh Binh4-May-04 23:32
Tran Thanh Binh4-May-04 23:32 
Generalstreambuf Pin
Member 10128694-May-04 22:26
Member 10128694-May-04 22:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.