Click here to Skip to main content
15,884,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Error 2248: cannot access protected member declared in CWinapp Pin
Albert Holguin17-Jun-11 8:44
professionalAlbert Holguin17-Jun-11 8:44 
GeneralRe: Error 2248: cannot access protected member declared in CWinapp Pin
eastman7517-Jun-11 22:10
eastman7517-Jun-11 22:10 
GeneralRe: Error 2248: cannot access protected member declared in CWinapp Pin
Richard MacCutchan17-Jun-11 22:52
mveRichard MacCutchan17-Jun-11 22:52 
GeneralRe: Error 2248: cannot access protected member declared in CWinapp Pin
Albert Holguin18-Jun-11 6:38
professionalAlbert Holguin18-Jun-11 6:38 
GeneralRe: Error 2248: cannot access protected member declared in CWinapp Pin
eastman7519-Jun-11 5:01
eastman7519-Jun-11 5:01 
GeneralRe: Error 2248: cannot access protected member declared in CWinapp Pin
eastman7520-Jun-11 5:39
eastman7520-Jun-11 5:39 
GeneralRe: Error 2248: cannot access protected member declared in CWinapp Pin
Albert Holguin20-Jun-11 7:25
professionalAlbert Holguin20-Jun-11 7:25 
AnswerRe: Error 2248: cannot access protected member declared in CWinapp Pin
eastman7520-Jun-11 18:34
eastman7520-Jun-11 18:34 
Hi, Albert,
I'd tried various approaches until I found an excellent C++ Tutorial (http://www.learncpp.com/) and got the understanding that my problem is related to the inheritance subject. As it is clearly stated in the tutorial:
2.	The protected access specifier allows derived classes to directly access members of the base class while not exposing those members to the public. 

I see now that I have to make call within but my derived class. It does work except that there reveals another problem -- WriteRegisterString needs an access to the m_pszRegistryKey variable which is an attribute of CWinApp class. IAE, I have to learn a bit more on the subject.

The discussion was very helpful and I thank you for the time you spent on it.

Regards,
Anatoly
QuestionUnresolved external Symbol Pin
William Engberts17-Jun-11 4:14
William Engberts17-Jun-11 4:14 
AnswerRe: Unresolved external Symbol Pin
Albert Holguin17-Jun-11 4:16
professionalAlbert Holguin17-Jun-11 4:16 
GeneralRe: Unresolved external Symbol Pin
William Engberts17-Jun-11 4:20
William Engberts17-Jun-11 4:20 
GeneralRe: Unresolved external Symbol Pin
Albert Holguin17-Jun-11 4:25
professionalAlbert Holguin17-Jun-11 4:25 
GeneralRe: Unresolved external Symbol Pin
MicroVirus17-Jun-11 4:26
MicroVirus17-Jun-11 4:26 
GeneralRe: Unresolved external Symbol Pin
William Engberts17-Jun-11 4:30
William Engberts17-Jun-11 4:30 
GeneralRe: Unresolved external Symbol Pin
Albert Holguin17-Jun-11 4:29
professionalAlbert Holguin17-Jun-11 4:29 
GeneralRe: Unresolved external Symbol Pin
William Engberts17-Jun-11 4:27
William Engberts17-Jun-11 4:27 
GeneralRe: Unresolved external Symbol Pin
Albert Holguin17-Jun-11 4:34
professionalAlbert Holguin17-Jun-11 4:34 
GeneralRe: Unresolved external Symbol Pin
William Engberts17-Jun-11 4:37
William Engberts17-Jun-11 4:37 
GeneralRe: Unresolved external Symbol Pin
Albert Holguin17-Jun-11 4:42
professionalAlbert Holguin17-Jun-11 4:42 
GeneralRe: Unresolved external Symbol Pin
MicroVirus17-Jun-11 4:46
MicroVirus17-Jun-11 4:46 
GeneralRe: Unresolved external Symbol Pin
MicroVirus17-Jun-11 4:39
MicroVirus17-Jun-11 4:39 
QuestionRe: Unresolved external Symbol Pin
David Crow17-Jun-11 6:31
David Crow17-Jun-11 6:31 
AnswerRe: Unresolved external Symbol Pin
Albert Holguin17-Jun-11 7:38
professionalAlbert Holguin17-Jun-11 7:38 
AnswerRe: Unresolved external Symbol Pin
Richard MacCutchan17-Jun-11 4:45
mveRichard MacCutchan17-Jun-11 4:45 
GeneralRe: Unresolved external Symbol Pin
William Engberts17-Jun-11 4:46
William Engberts17-Jun-11 4:46 

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.