Click here to Skip to main content
15,891,864 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Using Filtering Functions in Win32 App Pin
Niklas L12-Dec-10 3:23
Niklas L12-Dec-10 3:23 
GeneralRe: Using Filtering Functions in Win32 App Pin
Coder-12345612-Dec-10 5:07
Coder-12345612-Dec-10 5:07 
GeneralRe: Using Filtering Functions in Win32 App Pin
Niklas L12-Dec-10 8:09
Niklas L12-Dec-10 8:09 
GeneralRe: Using Filtering Functions in Win32 App Pin
Coder-12345612-Dec-10 21:27
Coder-12345612-Dec-10 21:27 
QuestionHow can use Socket Connection Timeout? Pin
Le@rner11-Dec-10 1:40
Le@rner11-Dec-10 1:40 
AnswerRe: How can use Socket Connection Timeout? Pin
yu-jian15-Dec-10 3:13
yu-jian15-Dec-10 3:13 
GeneralRe: How can use Socket Connection Timeout? Pin
Le@rner15-Dec-10 17:19
Le@rner15-Dec-10 17:19 
QuestionUser defined message , exeption at the handler return [modified] Pin
timbk10-Dec-10 3:05
timbk10-Dec-10 3:05 
Hello, Im using a dialog based app (VC++ 6), with a main dialog and his child dialog (modals dialogs).
And i have to use a user defined message to send a message to the parent dialog. When i'm debugging, in the handler of this message (in the parent dialog) i get this exception in the return sentence "Unhandled exception in Myapp.exe (MFC42D.DLL):0xc0000005: Acces Violation


Parent dialog header, declaration of Handler:
       .
       .
afx_msg LRESULT OnMsjGuardarConfig(WPARAM wParam, LPARAM lParam);
       .
       .


Parent dialog header, Declared Mesagge map:
       .
       .
afx_msg void OnMsjGuardarConfig();
       .
       .


Parent dialog source, file Message map:
       .
       .
ON_MESSAGE(WM_MsjGuardarConfig, OnMsjGuardarConfig)
       .
       .


Parent dialog source, file definition of the handler:

LRESULT CCalibracionDlg::OnMsjGuardarConfig(WPARAM wParam, LPARAM lParam)
{
  //i do some stuffs 
return 0; // ==> here is exception !!!!
}


Defining the user defined message in StdAfx.h:
           .
           .
#define WM_MsjGuardarConfig WM_USER+1 // 
           .
           .


Posting the message in the child dialog:
void CConfiguracionDlg::OnBUTTONGuadar() 
{
	GetParent()->;PostMessage(WM_MsjGuardarConfig,NULL,NULL); //
}


Probably is some newbie problem , but i can't fix it until now. Frown | :(
Thanks in advance!!
modified on Friday, December 10, 2010 10:25 AM

AnswerRe: User defined message , exeption at the hander return Pin
Cool_Dev10-Dec-10 3:25
Cool_Dev10-Dec-10 3:25 
GeneralRe: User defined message , exeption at the hander return Pin
timbk10-Dec-10 4:09
timbk10-Dec-10 4:09 
AnswerRe: User defined message , exeption at the hander return Pin
Maximilien10-Dec-10 3:48
Maximilien10-Dec-10 3:48 
GeneralRe: User defined message , exeption at the hander return Pin
timbk10-Dec-10 4:24
timbk10-Dec-10 4:24 
AnswerRe: User defined message , exeption at the handler return Pin
«_Superman_»10-Dec-10 7:50
professional«_Superman_»10-Dec-10 7:50 
GeneralRe: User defined message , exeption at the handler return Pin
timbk10-Dec-10 7:56
timbk10-Dec-10 7:56 
AnswerAdded information Pin
timbk10-Dec-10 8:09
timbk10-Dec-10 8:09 
AnswerMore Added Info Pin
timbk10-Dec-10 9:30
timbk10-Dec-10 9:30 
GeneralRe: More Added Info Pin
Richard MacCutchan10-Dec-10 23:01
mveRichard MacCutchan10-Dec-10 23:01 
AnswerRe: User defined message , exeption at the handler return Pin
Gary R. Wheeler11-Dec-10 1:09
Gary R. Wheeler11-Dec-10 1:09 
AnswerVC++ debugging with latest Avira Antivir Pin
Alexander Fedorov10-Dec-10 2:33
Alexander Fedorov10-Dec-10 2:33 
QuestionUsing WM_USER, WM_APP or RegisterWindowMessage Pin
yccheok9-Dec-10 21:25
yccheok9-Dec-10 21:25 
AnswerRe: Using WM_USER, WM_APP or RegisterWindowMessage [modified] Pin
CPallini9-Dec-10 22:08
mveCPallini9-Dec-10 22:08 
GeneralRe: Using WM_USER, WM_APP or RegisterWindowMessage Pin
Rajesh R Subramanian9-Dec-10 23:43
professionalRajesh R Subramanian9-Dec-10 23:43 
GeneralRe: Using WM_USER, WM_APP or RegisterWindowMessage Pin
CPallini9-Dec-10 23:48
mveCPallini9-Dec-10 23:48 
GeneralRe: Using WM_USER, WM_APP or RegisterWindowMessage Pin
Rajesh R Subramanian9-Dec-10 23:51
professionalRajesh R Subramanian9-Dec-10 23:51 
GeneralRe: Using WM_USER, WM_APP or RegisterWindowMessage Pin
CPallini10-Dec-10 0:11
mveCPallini10-Dec-10 0:11 

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.