Click here to Skip to main content
15,916,215 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to send keyboard event to other program ? Pin
wangningyu22-Dec-09 18:53
wangningyu22-Dec-09 18:53 
AnswerRe: How to send keyboard event to other program ? Pin
Rajesh R Subramanian22-Dec-09 18:57
professionalRajesh R Subramanian22-Dec-09 18:57 
AnswerRe: How to send keyboard event to other program ? Pin
KingsGambit22-Dec-09 19:16
KingsGambit22-Dec-09 19:16 
GeneralRe: How to send keyboard event to other program ? Pin
wangningyu22-Dec-09 19:21
wangningyu22-Dec-09 19:21 
GeneralRe: How to send keyboard event to other program ? Pin
Rajesh R Subramanian22-Dec-09 19:23
professionalRajesh R Subramanian22-Dec-09 19:23 
GeneralRe: How to send keyboard event to other program ? Pin
KingsGambit22-Dec-09 19:39
KingsGambit22-Dec-09 19:39 
QuestionSplit CString Pin
kumar sanghvi22-Dec-09 18:33
kumar sanghvi22-Dec-09 18:33 
AnswerRe: Split CString [modified] Pin
Rajesh R Subramanian22-Dec-09 18:51
professionalRajesh R Subramanian22-Dec-09 18:51 
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 

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.