Click here to Skip to main content
15,901,426 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
RantRe: Split CString Pin
Adam Roderick J22-Dec-09 21:51
Adam Roderick J22-Dec-09 21:51 
GeneralRe: Split CString Pin
Rajesh R Subramanian22-Dec-09 23:17
professionalRajesh R Subramanian22-Dec-09 23:17 
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 
It's more a question of preventing the derived classes from calling the function. I'm looking for a compile-time way to enforce my rule rather than depending on the goodness of the derived class'es writer -- me in this case, so this is something of an academic discussion since I am, by definition, most definitely good. Wink | ;)

The basic issue is how to make the function private with respect to derived classes yet somehow allow a callback who only has a class pointer to call the function. I can't pass a direct pointer to the function as the parameter to the callback because of the nature of the OS function that sets up the callback. It only takes one parameter but can initiate multiple callbacks. I only showed one in my example code to make life simpler.

Judy

Be wary of strong drink. It can make you shoot at tax collectors - and miss.
Lazarus Long, "Time Enough For Love" by Robert A. Heinlein

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 
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 

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.