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

C / C++ / MFC

 
AnswerRe: How to extract a substring from a string in visual c++ Pin
Cedric Moonen18-Dec-08 22:15
Cedric Moonen18-Dec-08 22:15 
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 
As both Cédric and Hamid suggested, your question is not very clear what you mean regarding the concept of "events".
But in my opinion the only meaning of events where it makes sense to be compared to functions is in the sense of windows messages. If you mean something else you can stop reading here. Wink | ;)

Windows is a so called "event-driven" operating system.
This means that every action will generate an event, which in windows is represented by a message.
If you wish to react on a certain action, you write a message handler for the message; e.g if you want to do something when the user double clicks the left button of the mouse, you write a message handler for the WM_LBUTTONDBLCLK message.
Regarding "functions" you must of course write functions and call them in order to do the things you want. But this also means that if you're spending a lot of time in a function call chain, the user will find the user interface inresponsive because you are not handling messages. To prevent this unpleasant user experience, it's common to use worker threads that run in the background performing lengthy operations.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown


AnswerRe: difference between Events and functions Pin
Emilio Garavaglia18-Dec-08 23:09
Emilio Garavaglia18-Dec-08 23:09 
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 

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.