Click here to Skip to main content
16,005,552 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralA problem with update application. Please help me ! Pin
King of Merit20-Oct-04 22:51
King of Merit20-Oct-04 22:51 
GeneralRe: A problem with update application. Please help me ! Pin
ThatsAlok20-Oct-04 23:52
ThatsAlok20-Oct-04 23:52 
QuestionHow to execute command line in remote machine? Pin
dungle3020-Oct-04 22:33
dungle3020-Oct-04 22:33 
AnswerRe: How to execute command line in remote machine? Pin
ThatsAlok21-Oct-04 0:41
ThatsAlok21-Oct-04 0:41 
AnswerRe: How to execute command line in remote machine? Pin
Henry miller21-Oct-04 2:26
Henry miller21-Oct-04 2:26 
AnswerRe: How to execute command line in remote machine? Pin
David Crow21-Oct-04 2:37
David Crow21-Oct-04 2:37 
GeneralRe: How to execute command line in remote machine? Pin
dungle3021-Oct-04 16:47
dungle3021-Oct-04 16:47 
GeneralWindows message with MFC Pin
madretierra20-Oct-04 22:15
madretierra20-Oct-04 22:15 
Hello, is there anybody who can help me.

In my main program I have declared a fonction 'OnMyMessage'
In my .h file : afx_msg LRESULT OnMyMessage(WPARAM wparam, LPARAM lparam);

In my .cpp file :

BEGIN_MESSAGE_MAP(CPatchingMPEG2Dlg, CDialog)



ON_MESSAGE(WM_USER+1, OnMyMessage)

END_MESSAGE_MAP()

...

LRESULT CPatchingMPEG2Dlg::OnMyMessage(WPARAM wparam, LPARAM lparam)

{

EditSCR.SetWindowText(strOut);

strOut.Format("TimeCode %X",wparam);

return TRUE;

}



I pass the m_hwnd variable to another processus (a directshow filter) where I post a value to my main window by :

PostMessage(MYWINDOW, WM_USER+1, TimeCode, 0 );

My problem is that I have to write 2 times this instruction so that my function 'OnMyMessage' start. If I write only one PostMessage i get nothing !

Can you please help me about this point ?

I thank you very much for your help and wish you a nice day !



There is no way to happiness, happiness is the way !
GeneralRe: Windows message with MFC Pin
David Crow21-Oct-04 2:39
David Crow21-Oct-04 2:39 
GeneralRe: Windows message with MFC Pin
Anonymous21-Oct-04 4:33
Anonymous21-Oct-04 4:33 
GeneralRe: Windows message with MFC Pin
David Crow21-Oct-04 4:37
David Crow21-Oct-04 4:37 
GeneralRe: Windows message with MFC Pin
madretierra21-Oct-04 4:53
madretierra21-Oct-04 4:53 
GeneralRe: Windows message with MFC Pin
David Crow21-Oct-04 5:25
David Crow21-Oct-04 5:25 
GeneralRe: Windows message with MFC Pin
madretierra21-Oct-04 5:40
madretierra21-Oct-04 5:40 
GeneralMFC List Control Pin
missnazar20-Oct-04 21:03
missnazar20-Oct-04 21:03 
GeneralRe: MFC List Control Pin
David Crow21-Oct-04 2:42
David Crow21-Oct-04 2:42 
Generali want c++code for simple calender Pin
mohamed radwan20-Oct-04 20:11
mohamed radwan20-Oct-04 20:11 
GeneralRe: i want c++code for simple calender Pin
Thomas Haller20-Oct-04 22:45
Thomas Haller20-Oct-04 22:45 
GeneralHIDE/UNHIDE window Pin
jsm@operamail.com20-Oct-04 20:03
jsm@operamail.com20-Oct-04 20:03 
GeneralRe: HIDE/UNHIDE window Pin
David Crow21-Oct-04 2:44
David Crow21-Oct-04 2:44 
GeneralRe: HIDE/UNHIDE window Pin
Michael Dunn21-Oct-04 2:46
sitebuilderMichael Dunn21-Oct-04 2:46 
GeneralRe: HIDE/UNHIDE window Pin
David Crow21-Oct-04 3:04
David Crow21-Oct-04 3:04 
GeneralRe: HIDE/UNHIDE window Pin
jsm@operamail.com24-Oct-04 20:05
jsm@operamail.com24-Oct-04 20:05 
Questionhow to create tab control in mdi application Pin
vc-programmer-20-Oct-04 18:44
vc-programmer-20-Oct-04 18:44 
GeneralWindows across network Pin
SiddharthAtw20-Oct-04 18:29
SiddharthAtw20-Oct-04 18:29 

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.