Click here to Skip to main content
15,919,121 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ABS( ) Pin
DaveE9th9-Jul-03 4:01
DaveE9th9-Jul-03 4:01 
QuestionHow to store a numeric value to *.mdb table from edit box Pin
Emre Zorlu8-Jul-03 20:14
Emre Zorlu8-Jul-03 20:14 
AnswerRe: How to store a numeric value to *.mdb table from edit box Pin
Toni788-Jul-03 20:25
Toni788-Jul-03 20:25 
AnswerRe: How to store a numeric value to *.mdb table from edit box Pin
Terry O'Nolley10-Jul-03 8:18
Terry O'Nolley10-Jul-03 8:18 
QuestionHow to support axtivex control in my mfc regular dll Pin
gucy8-Jul-03 19:47
gucy8-Jul-03 19:47 
AnswerRe: How to support axtivex control in my mfc regular dll Pin
gucy8-Jul-03 20:46
gucy8-Jul-03 20:46 
GeneralAdding toolbar to a SDK in VC++ Pin
madhu_nal8-Jul-03 19:42
madhu_nal8-Jul-03 19:42 
GeneralPlease see why it happened Pin
Anonymous8-Jul-03 19:35
Anonymous8-Jul-03 19:35 
Check the following abstract code snippet.

CMyclass::OnClick1() //called when button1 is clicked
{
Postmessage(WM_USER1);
.
.
. //2
MessageBox("Everything not roght here.");

}

CMyclass::OnUser1() //called when WM_USER1 message is posted
{
Beep(200,300);
.
.
.
.


}

Now what happens is whenever CMyclass::OnClick1() gets called it executes the code till comment two (//2) it doesn't displays the MessageBox(), then it jumps to CMyclass::OnUser1() handler executes it completely, then again comes back to CMyclass::OnClick1() & starts where it left, i.e it displays the MessageBox() & everything goes as expected.

Now the question is why it jumped from CMyclass::OnClick1() to CMyclass::OnUser1() before displaying the MessageBox(), then again comes back & does the rest?
GeneralRe: Please see why it happened Pin
Cedric Moonen8-Jul-03 20:12
Cedric Moonen8-Jul-03 20:12 
GeneralRe: Please see why it happened Pin
Ryan Binns8-Jul-03 20:37
Ryan Binns8-Jul-03 20:37 
GeneralRe: Please see why it happened Pin
Cedric Moonen8-Jul-03 21:01
Cedric Moonen8-Jul-03 21:01 
GeneralRe: Please see why it happened Pin
Ryan Binns8-Jul-03 20:38
Ryan Binns8-Jul-03 20:38 
GeneralRe: Please see why it happened Pin
Toni788-Jul-03 20:47
Toni788-Jul-03 20:47 
GeneralRe: Please see why it happened Pin
Ryan Binns8-Jul-03 20:51
Ryan Binns8-Jul-03 20:51 
GeneralRe: Please see why it happened Pin
Toni788-Jul-03 21:03
Toni788-Jul-03 21:03 
GeneralRe: Please see why it happened Pin
Ryan Binns8-Jul-03 21:07
Ryan Binns8-Jul-03 21:07 
GeneralRe: Please see why it happened Pin
Toni788-Jul-03 21:16
Toni788-Jul-03 21:16 
GeneralRe: Please see why it happened Pin
Ryan Binns8-Jul-03 21:21
Ryan Binns8-Jul-03 21:21 
GeneralRe: Please see why it happened Pin
Toni788-Jul-03 21:40
Toni788-Jul-03 21:40 
GeneralRe: Please see why it happened Pin
Ryan Binns8-Jul-03 21:46
Ryan Binns8-Jul-03 21:46 
GeneralRe: Please see why it happened Pin
Iain Clarke, Warrior Programmer8-Jul-03 22:58
Iain Clarke, Warrior Programmer8-Jul-03 22:58 
GeneralRe: Please see why it happened Pin
Ryan Binns8-Jul-03 23:04
Ryan Binns8-Jul-03 23:04 
GeneralRe: Please see why it happened Pin
Iain Clarke, Warrior Programmer9-Jul-03 1:02
Iain Clarke, Warrior Programmer9-Jul-03 1:02 
GeneralRe: Please see why it happened Pin
Ryan Binns9-Jul-03 1:26
Ryan Binns9-Jul-03 1:26 
GeneralRe: Please see why it happened Pin
Anonymous9-Jul-03 0:14
Anonymous9-Jul-03 0:14 

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.