Click here to Skip to main content
15,921,212 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Sorry I was logged out Pin
Aidman6-Jul-03 7:12
Aidman6-Jul-03 7:12 
AnswerRe: Pointing a function pointer to a variable? Pin
Ryan Binns5-Jul-03 20:29
Ryan Binns5-Jul-03 20:29 
GeneralRe: Pointing a function pointer to a variable? Pin
Aidman6-Jul-03 7:05
Aidman6-Jul-03 7:05 
GeneralRe: Pointing a function pointer to a variable? Pin
Ryan Binns6-Jul-03 17:50
Ryan Binns6-Jul-03 17:50 
AnswerRe: Pointing a function pointer to a variable? Pin
peterchen5-Jul-03 21:51
peterchen5-Jul-03 21:51 
GeneralRe: Pointing a function pointer to a variable? Pin
Aidman6-Jul-03 7:08
Aidman6-Jul-03 7:08 
GeneralRe: Pointing a function pointer to a variable? Pin
peterchen6-Jul-03 22:17
peterchen6-Jul-03 22:17 
GeneralProtected member access, that's not protected Pin
pdunn5-Jul-03 14:39
pdunn5-Jul-03 14:39 
I have a problem with my MDI. I have three views. Two are CHtmlViews and when one of the CHtmlView (View2) is clicked; it is suppose to call the other CHtmlView (View1) to go to that website. I have in the CApp class the global variable theApp and a public class GetHtmlView(). GetHtmlView goes through the active frames until View1 is found and return a pointer to it. The problem that I get is

'CApp::GetHtmlView' : cannot access protected member declared in class 'CApp'
: see declaration of 'CApp::GetHtmlView'
: see declaration of 'CApp'

This is CApp::GetHtmlView declaration

CActWin* GetHtmlView();

This is CApp declaration

public CApp : public CWinApp

I have no protected members inside of CApp.
This is where I get the error inside of View2

CActWin* pActWin1 = theApp.GetHtmlView();
pActWin1->Navigate2(lpszURL,NULL,NULL);

The theApp is global like previously stated

extern CApp theApp;

Off topic, but does anyone know the best solution for when View2 is clicked and I don't want View2 to navigate to that website that was clicked on. I used in the OnBeforeNavigate2(); Navigation("current html", NULL, NULL). I just think there should be a better way to prevent View2 from going to another site.

Thanks for any help

GeneralUnknown message Pin
Xakep5-Jul-03 12:54
Xakep5-Jul-03 12:54 
GeneralRe: Unknown message Pin
Ryan Binns5-Jul-03 20:36
Ryan Binns5-Jul-03 20:36 
QuestionMS Office 97 ActiveX Control? Pin
Mardigin5-Jul-03 12:15
Mardigin5-Jul-03 12:15 
QuestionHow do I stop a do/while loop using a toolbar Pin
Rno355-Jul-03 10:58
Rno355-Jul-03 10:58 
AnswerRe: How do I stop a do/while loop using a toolbar Pin
jhaga5-Jul-03 11:37
professionaljhaga5-Jul-03 11:37 
AnswerRe: How do I stop a do/while loop using a toolbar Pin
MAAK6-Jul-03 13:31
MAAK6-Jul-03 13:31 
GeneralUpdating dialogue Pin
andyg.1015-Jul-03 4:01
andyg.1015-Jul-03 4:01 
GeneralRe: Updating dialogue Pin
valikac5-Jul-03 7:09
valikac5-Jul-03 7:09 
Questionhow I can know which character can output? Pin
Alice805-Jul-03 3:58
Alice805-Jul-03 3:58 
AnswerRe: how I can know which character can output? Pin
David Crow5-Jul-03 12:26
David Crow5-Jul-03 12:26 
GeneralRe: how I can know which character can output? Pin
RChin6-Jul-03 23:25
RChin6-Jul-03 23:25 
GeneralTR1 (C++ Standard) Pin
Andrew Walker5-Jul-03 3:48
Andrew Walker5-Jul-03 3:48 
GeneralDEBUG ASSERTION FAILED: File: afx.inl Line: 157 Pin
spokes5-Jul-03 3:33
spokes5-Jul-03 3:33 
GeneralRe: DEBUG ASSERTION FAILED: File: afx.inl Line: 157 Pin
spokes5-Jul-03 4:19
spokes5-Jul-03 4:19 
GeneralOnCmdMsg Pin
grotesque5-Jul-03 2:53
grotesque5-Jul-03 2:53 
GeneralRe: OnCmdMsg Pin
Ryan Binns5-Jul-03 3:27
Ryan Binns5-Jul-03 3:27 
GeneralRe: OnCmdMsg Pin
Xakep5-Jul-03 8:44
Xakep5-Jul-03 8:44 

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.