Click here to Skip to main content
15,889,200 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Mouseover Pin
Hans Dietrich12-May-07 3:04
mentorHans Dietrich12-May-07 3:04 
AnswerRe: Mouseover Pin
jk chan12-May-07 5:28
jk chan12-May-07 5:28 
GeneralRe: Mouseover Pin
Mark Salsbery12-May-07 6:14
Mark Salsbery12-May-07 6:14 
QuestionCListCrtl like in task manager Pin
Cedric Moonen12-May-07 2:25
Cedric Moonen12-May-07 2:25 
AnswerRe: CListCrtl like in task manager Pin
Hans Dietrich12-May-07 2:53
mentorHans Dietrich12-May-07 2:53 
GeneralRe: CListCrtl like in task manager Pin
Cedric Moonen12-May-07 2:58
Cedric Moonen12-May-07 2:58 
QuestionCallBack function Pin
Kiran Pinjala12-May-07 1:09
Kiran Pinjala12-May-07 1:09 
AnswerRe: CallBack function Pin
CPallini12-May-07 2:19
mveCPallini12-May-07 2:19 
A callback is a function that you define but don't call yourself (thought nothing prevents you to do it). A callback is needed whenever you application has to perform some custom actions on occurrence of particular events. For instance, consider the Windows API EnumWindows (see here ^]), for each found window the OS calls the callback you defined (and as you may notice, you have to conform your callback declaration to EnumWindows requested one).
To summarize, usually:
(1) You have to declare you callback as requested by the callback caller.
(2) You may define your callback as you prefer.
(3) You don't call yourself the callback function.

of course the depicted scenario applies to most of the cases, on the other hand, if you are designing, for instance, a framework, then you have to apply the opposite point of view (i.e. establish the callback declaration, let the user application to define it, call the latter whenver appropriate).

Hope that helps.
Smile | :)


If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

AnswerRe: CallBack function Pin
Hamid_RT12-May-07 6:05
Hamid_RT12-May-07 6:05 
Questionsave results in xml Pin
lavy288312-May-07 0:31
lavy288312-May-07 0:31 
AnswerRe: save results in xml Pin
Mark Salsbery12-May-07 5:22
Mark Salsbery12-May-07 5:22 
AnswerRe: save results in xml Pin
Hamid_RT12-May-07 6:07
Hamid_RT12-May-07 6:07 
AnswerRe: save results in xml Pin
S Douglas13-May-07 2:08
professionalS Douglas13-May-07 2:08 
QuestionOpen() function not opening file Pin
neha.agarwal2711-May-07 23:50
neha.agarwal2711-May-07 23:50 
AnswerRe: Open() function not opening file Pin
Rajesh R Subramanian12-May-07 0:15
professionalRajesh R Subramanian12-May-07 0:15 
GeneralRe: Open() function not opening file Pin
neha.agarwal2712-May-07 0:23
neha.agarwal2712-May-07 0:23 
GeneralRe: Open() function not opening file Pin
Rajesh R Subramanian12-May-07 0:34
professionalRajesh R Subramanian12-May-07 0:34 
QuestionQueue Pin
tamer hasasn11-May-07 23:47
tamer hasasn11-May-07 23:47 
AnswerRe: Queue Pin
Christian Graus12-May-07 0:07
protectorChristian Graus12-May-07 0:07 
AnswerRe: Queue Pin
Stephen Hewitt13-May-07 15:13
Stephen Hewitt13-May-07 15:13 
QuestionHow to add a file list box in SHBrowseOfFolder() dialog? Pin
zhongwenjia11-May-07 23:28
zhongwenjia11-May-07 23:28 
AnswerRe: How to add a file list box in SHBrowseOfFolder() dialog? Pin
Mark Salsbery12-May-07 5:35
Mark Salsbery12-May-07 5:35 
QuestionIP address control Pin
prathuraj11-May-07 20:39
prathuraj11-May-07 20:39 
AnswerRe: IP address control Pin
TariqZ11-May-07 21:20
TariqZ11-May-07 21:20 
GeneralRe: IP address control Pin
Member 1308982521-Apr-17 0:21
Member 1308982521-Apr-17 0:21 

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.