Click here to Skip to main content
15,910,878 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to extract a substring from a string in visual c++ Pin
Iain Clarke, Warrior Programmer18-Dec-08 22:19
Iain Clarke, Warrior Programmer18-Dec-08 22:19 
AnswerRe: How to extract a substring from a string in visual c++ Pin
Hamid_RT18-Dec-08 23:18
Hamid_RT18-Dec-08 23:18 
QuestionMultiple Row selection in the Grid. Pin
Royaltvk18-Dec-08 21:30
Royaltvk18-Dec-08 21:30 
Questiondifference between Events and functions Pin
shaina223118-Dec-08 21:03
shaina223118-Dec-08 21:03 
AnswerRe: difference between Events and functions Pin
Cedric Moonen18-Dec-08 21:12
Cedric Moonen18-Dec-08 21:12 
AnswerRe: difference between Events and functions Pin
Hamid_RT18-Dec-08 21:24
Hamid_RT18-Dec-08 21:24 
AnswerRe: difference between Events and functions Pin
Roger Stoltz18-Dec-08 22:05
Roger Stoltz18-Dec-08 22:05 
AnswerRe: difference between Events and functions Pin
Emilio Garavaglia18-Dec-08 23:09
Emilio Garavaglia18-Dec-08 23:09 
Yes and no ... it mostly depend on the language and on the programming model.

The conceptual difference is that a "function" is something you call to get a work to be done for you.
An event is something you call to inform "someone who may listen" that it may have some work to do for itself.

Then, since everything has to work on a Von Neumann machine, events are "handled" by functions (but "aren't" themselves functions).

In more "real life": a function call is a capability you expose to me, that I can call: like me telling you "please do this calculation" (And Im'interested in the result).
An event is a capability I expose to let you able to do your job, like "please be informed that a mail has arrived".
I'm not directly interested in what you can do with it. Just know you wish to be informed about.

Just note how in both the example, the active subject (the one that "owns" the timing) is always "me". If you invert, than event and function also invert their role.


2 bugs found.
> recompile ...
65534 bugs found.
D'Oh! | :doh:


QuestionBack Image in TreeCtrl ! Pin
Le@rner18-Dec-08 20:54
Le@rner18-Dec-08 20:54 
AnswerRe: Back Image in TreeCtrl ! Pin
Hamid_RT18-Dec-08 21:23
Hamid_RT18-Dec-08 21:23 
AnswerRe: Back Image in TreeCtrl ! Pin
Naveen18-Dec-08 21:47
Naveen18-Dec-08 21:47 
Questionconvert const char to std::string Pin
RedSonja18-Dec-08 20:31
RedSonja18-Dec-08 20:31 
AnswerRe: convert const char to std::string Pin
Cedric Moonen18-Dec-08 20:34
Cedric Moonen18-Dec-08 20:34 
GeneralRe: convert const char to std::string Pin
RedSonja18-Dec-08 20:47
RedSonja18-Dec-08 20:47 
QuestionGetClientRect Pin
tcshinto18-Dec-08 19:59
tcshinto18-Dec-08 19:59 
AnswerRe: GetClientRect Pin
Sarath C18-Dec-08 20:05
Sarath C18-Dec-08 20:05 
AnswerRe: GetClientRect Pin
Hamid_RT18-Dec-08 20:25
Hamid_RT18-Dec-08 20:25 
QuestionHow can i make a application which can run on mac/linux/windows? Pin
bankey101018-Dec-08 19:57
bankey101018-Dec-08 19:57 
AnswerRe: How can i make a application which can run on mac/linux/windows? Pin
Cedric Moonen18-Dec-08 20:07
Cedric Moonen18-Dec-08 20:07 
AnswerRe: How can i make a application which can run on mac/linux/windows? Pin
Sarath C18-Dec-08 20:09
Sarath C18-Dec-08 20:09 
AnswerRe: How can i make a application which can run on mac/linux/windows? Pin
Royaltvk18-Dec-08 21:55
Royaltvk18-Dec-08 21:55 
AnswerRe: How can i make a application which can run on mac/linux/windows? Pin
ramana.g18-Dec-08 22:38
ramana.g18-Dec-08 22:38 
QuestionGetPrivateProfileInt( ) crashes for a specific domain user on a Specific Machine (Dell Optiplex 755 with Vista Sp1) Pin
V K 218-Dec-08 19:15
V K 218-Dec-08 19:15 
AnswerRe: GetPrivateProfileInt( ) crashes for a specific domain user on a Specific Machine (Dell Optiplex 755 with Vista Sp1) Pin
Sarath C18-Dec-08 20:13
Sarath C18-Dec-08 20:13 
AnswerRe: GetPrivateProfileInt( ) crashes for a specific domain user on a Specific Machine (Dell Optiplex 755 with Vista Sp1) Pin
Randor 19-Dec-08 3:56
professional Randor 19-Dec-08 3:56 

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.