Click here to Skip to main content
15,561,948 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Error 2248: cannot access protected member declared in CWinapp Pin
Abhi Lahare17-Jun-11 9:36
Abhi Lahare17-Jun-11 9:36 
AnswerRe: Error 2248: cannot access protected member declared in CWinapp Pin
eastman7521-Jun-11 20:23
eastman7521-Jun-11 20:23 
AnswerRe: Error 2248: cannot access protected member declared in CWinapp Pin
Albert Holguin17-Jun-11 9:44
professionalAlbert Holguin17-Jun-11 9:44 
GeneralRe: Error 2248: cannot access protected member declared in CWinapp Pin
eastman7517-Jun-11 23:10
eastman7517-Jun-11 23:10 
GeneralRe: Error 2248: cannot access protected member declared in CWinapp Pin
Richard MacCutchan17-Jun-11 23:52
mveRichard MacCutchan17-Jun-11 23:52 
GeneralRe: Error 2248: cannot access protected member declared in CWinapp Pin
Albert Holguin18-Jun-11 7:38
professionalAlbert Holguin18-Jun-11 7:38 
GeneralRe: Error 2248: cannot access protected member declared in CWinapp Pin
eastman7519-Jun-11 6:01
eastman7519-Jun-11 6:01 
GeneralRe: Error 2248: cannot access protected member declared in CWinapp Pin
eastman7520-Jun-11 6:39
eastman7520-Jun-11 6:39 
Sorry, it doesn't work either.
I do have a CWinApp derived class in my project (refer to my previous reply).
It is a simple dialog application. I need to write to the registry some value
and -- before using WriteProfileString -- I try to call SetRegistryKey.
There is the code snippet:
AfxGetApp()->SetRegistryKey(lpszRegistryKey);

At compiling I got the following message:
patchdlg.cpp(229) : error C2248: 'SetRegistryKey' : cannot access protected member declared in class 'CWinApp'

which returns us to the beginning of the discussion.
Is it possible to avoid that error at all? What is it there that I have overlooked?
GeneralRe: Error 2248: cannot access protected member declared in CWinapp Pin
Albert Holguin20-Jun-11 8:25
professionalAlbert Holguin20-Jun-11 8:25 
AnswerRe: Error 2248: cannot access protected member declared in CWinapp Pin
eastman7520-Jun-11 19:34
eastman7520-Jun-11 19:34 
QuestionUnresolved external Symbol Pin
William Engberts17-Jun-11 5:14
William Engberts17-Jun-11 5:14 
AnswerRe: Unresolved external Symbol Pin
Albert Holguin17-Jun-11 5:16
professionalAlbert Holguin17-Jun-11 5:16 
GeneralRe: Unresolved external Symbol Pin
William Engberts17-Jun-11 5:20
William Engberts17-Jun-11 5:20 
GeneralRe: Unresolved external Symbol Pin
Albert Holguin17-Jun-11 5:25
professionalAlbert Holguin17-Jun-11 5:25 
GeneralRe: Unresolved external Symbol Pin
MicroVirus17-Jun-11 5:26
MicroVirus17-Jun-11 5:26 
GeneralRe: Unresolved external Symbol Pin
William Engberts17-Jun-11 5:30
William Engberts17-Jun-11 5:30 
GeneralRe: Unresolved external Symbol Pin
Albert Holguin17-Jun-11 5:29
professionalAlbert Holguin17-Jun-11 5:29 
GeneralRe: Unresolved external Symbol Pin
William Engberts17-Jun-11 5:27
William Engberts17-Jun-11 5:27 
GeneralRe: Unresolved external Symbol Pin
Albert Holguin17-Jun-11 5:34
professionalAlbert Holguin17-Jun-11 5:34 
GeneralRe: Unresolved external Symbol Pin
William Engberts17-Jun-11 5:37
William Engberts17-Jun-11 5:37 
GeneralRe: Unresolved external Symbol Pin
Albert Holguin17-Jun-11 5:42
professionalAlbert Holguin17-Jun-11 5:42 
GeneralRe: Unresolved external Symbol Pin
MicroVirus17-Jun-11 5:46
MicroVirus17-Jun-11 5:46 
GeneralRe: Unresolved external Symbol Pin
MicroVirus17-Jun-11 5:39
MicroVirus17-Jun-11 5:39 
QuestionRe: Unresolved external Symbol Pin
David Crow17-Jun-11 7:31
David Crow17-Jun-11 7:31 
AnswerRe: Unresolved external Symbol Pin
Albert Holguin17-Jun-11 8:38
professionalAlbert Holguin17-Jun-11 8:38 

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.