Click here to Skip to main content
15,891,184 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Split CString Pin
KingsGambit22-Dec-09 19:02
KingsGambit22-Dec-09 19:02 
Question/MTd' and '/clr' command-line options are incompatible Pin
Anu_Bala22-Dec-09 18:33
Anu_Bala22-Dec-09 18:33 
AnswerRe: /MTd' and '/clr' command-line options are incompatible Pin
KingsGambit22-Dec-09 19:08
KingsGambit22-Dec-09 19:08 
Questionfunction access in base and derived classes Pin
JudyL_MD22-Dec-09 8:44
JudyL_MD22-Dec-09 8:44 
AnswerRe: function access in base and derived classes Pin
Richard Andrew x6422-Dec-09 10:25
professionalRichard Andrew x6422-Dec-09 10:25 
GeneralRe: function access in base and derived classes Pin
JudyL_MD22-Dec-09 11:14
JudyL_MD22-Dec-09 11:14 
GeneralRe: function access in base and derived classes Pin
Richard Andrew x6422-Dec-09 11:17
professionalRichard Andrew x6422-Dec-09 11:17 
GeneralRe: function access in base and derived classes Pin
Tim Craig22-Dec-09 14:07
Tim Craig22-Dec-09 14:07 
Sounds like the base and derived classes are inverted. The data you want to protect should be in the derived class and not in the base class. Then you could pass in the pointer to an instance of the derived class to the OS function. Depending on your other needs, the base class could implement the do nothing function that accesses the private data it doesn't have. If you need polymorphism, that fuction could be virtual and possibly even abstract.

You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.

GeneralRe: function access in base and derived classes Pin
JudyL_MD22-Dec-09 16:24
JudyL_MD22-Dec-09 16:24 
GeneralRe: function access in base and derived classes Pin
Tim Craig22-Dec-09 17:06
Tim Craig22-Dec-09 17:06 
QuestionRe: function access in base and derived classes Pin
Avi Berger22-Dec-09 18:49
Avi Berger22-Dec-09 18:49 
AnswerRe: function access in base and derived classes Pin
Tim Craig22-Dec-09 18:58
Tim Craig22-Dec-09 18:58 
GeneralRe: function access in base and derived classes [modified] Pin
Avi Berger22-Dec-09 19:21
Avi Berger22-Dec-09 19:21 
GeneralRe: function access in base and derived classes Pin
Tim Craig22-Dec-09 21:36
Tim Craig22-Dec-09 21:36 
GeneralRe: function access in base and derived classes Pin
JudyL_MD23-Dec-09 2:20
JudyL_MD23-Dec-09 2:20 
GeneralRe: function access in base and derived classes Pin
Tim Craig23-Dec-09 9:31
Tim Craig23-Dec-09 9:31 
GeneralRe: function access in base and derived classes Pin
JudyL_MD23-Dec-09 10:08
JudyL_MD23-Dec-09 10:08 
Questionfatal error RC1015: cannot open include file 'res\Test.rc2' Pin
iwt.dev22-Dec-09 7:39
iwt.dev22-Dec-09 7:39 
AnswerRe: fatal error RC1015: cannot open include file 'res\Test.rc2' Pin
dxlee22-Dec-09 8:46
dxlee22-Dec-09 8:46 
AnswerRe: fatal error RC1015: cannot open include file 'res\Test.rc2' Pin
Abhi Lahare22-Dec-09 18:16
Abhi Lahare22-Dec-09 18:16 
Question[Message Deleted] Pin
transoft22-Dec-09 5:45
transoft22-Dec-09 5:45 
AnswerRe: .NET and COM PinPopular
Rajesh R Subramanian22-Dec-09 6:00
professionalRajesh R Subramanian22-Dec-09 6:00 
General[Message Deleted] Pin
transoft22-Dec-09 6:40
transoft22-Dec-09 6:40 
GeneralRe: .NET and COM PinPopular
Rajesh R Subramanian22-Dec-09 6:50
professionalRajesh R Subramanian22-Dec-09 6:50 
GeneralRe: .NET and COM Pin
Maximilien22-Dec-09 7:42
Maximilien22-Dec-09 7:42 

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.