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

C / C++ / MFC

 
AnswerRe: insert dialog in between listbox items [modified] Pin
Monty28-Jun-06 0:33
Monty28-Jun-06 0:33 
QuestionRe: insert dialog in between listbox items [modified] Pin
David Crow8-Jun-06 3:12
David Crow8-Jun-06 3:12 
GeneralRe: insert dialog in between listbox items [modified] Pin
vasusree8-Jun-06 3:41
vasusree8-Jun-06 3:41 
QuestionRe: insert dialog in between listbox items [modified] Pin
David Crow8-Jun-06 4:18
David Crow8-Jun-06 4:18 
Questionwhat's the difference between Process,Thread,Event,Mutex and Semaphore Pin
poda7-Jun-06 23:10
poda7-Jun-06 23:10 
AnswerRe: what's the difference between Process,Thread,Event,Mutex and Semaphore Pin
shadrach_india8-Jun-06 0:02
shadrach_india8-Jun-06 0:02 
Questionquestion regarging callback functions Pin
namaskaaram7-Jun-06 22:59
namaskaaram7-Jun-06 22:59 
AnswerRe: question regarging callback functions Pin
Cedric Moonen7-Jun-06 23:06
Cedric Moonen7-Jun-06 23:06 
namaskaaram wrote:
why should a call back function be static when its called from an another class?


It is not only when it has to be called from another class: it is whenever your callback function is a member function of a class.

The difference between static member functions and non-static member functions is that for the non-static one, there is an implicit parameter that is passed to the function: the address of the instance of your class (the this pointer). As static member functions are shared across all instances of your class (and thus don't belong to a particular instance, thus cannot access non-static data from one instance), there is no implicit 'this' parameter that is passed.
This of course change the prototype of the callback function (because of the implicit parameter), that's why static and non-static member functions behave differently.


Cédric Moonen
Software developer

Charting control
QuestionSet the msflexgrid col width and row height according client rect [modified] Pin
zeus_master7-Jun-06 22:40
zeus_master7-Jun-06 22:40 
AnswerRe: Set the msflexgrid col width and row height according client rect [modified] Pin
Viorel.7-Jun-06 22:58
Viorel.7-Jun-06 22:58 
QuestionHow to make DoModal() in CFrameWnd Pin
huynhnb7-Jun-06 22:30
huynhnb7-Jun-06 22:30 
AnswerRe: How to make DoModal() in CFrameWnd Pin
Cedric Moonen7-Jun-06 22:34
Cedric Moonen7-Jun-06 22:34 
GeneralRe: How to make DoModal() in CFrameWnd Pin
huynhnb7-Jun-06 23:07
huynhnb7-Jun-06 23:07 
GeneralRe: How to make DoModal() in CFrameWnd Pin
Cedric Moonen7-Jun-06 23:12
Cedric Moonen7-Jun-06 23:12 
GeneralRe: How to make DoModal() in CFrameWnd Pin
huynhnb7-Jun-06 23:37
huynhnb7-Jun-06 23:37 
Questionneed sample code Pin
vasusree7-Jun-06 22:25
vasusree7-Jun-06 22:25 
AnswerRe: need sample code Pin
Cedric Moonen7-Jun-06 22:31
Cedric Moonen7-Jun-06 22:31 
AnswerRe: need sample code Pin
Hamid_RT7-Jun-06 22:36
Hamid_RT7-Jun-06 22:36 
AnswerRe: need sample code Pin
Viorel.7-Jun-06 22:46
Viorel.7-Jun-06 22:46 
NewsRe: need sample code Pin
vasusree7-Jun-06 22:48
vasusree7-Jun-06 22:48 
GeneralRe: need sample code Pin
Viorel.7-Jun-06 23:34
Viorel.7-Jun-06 23:34 
GeneralRe: need sample code Pin
vasusree8-Jun-06 3:41
vasusree8-Jun-06 3:41 
AnswerRe: need sample code Pin
Amar Sutar8-Jun-06 19:01
Amar Sutar8-Jun-06 19:01 
QuestionArray Pointer Pin
knoxplusplus7-Jun-06 22:19
knoxplusplus7-Jun-06 22:19 
AnswerRe: Array Pointer Pin
Hamid_RT7-Jun-06 22:27
Hamid_RT7-Jun-06 22:27 

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.