Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Error? Pin
Ravi Bhavnani2-Mar-05 10:55
professionalRavi Bhavnani2-Mar-05 10:55 
GeneralRe: Error? Pin
Larsson2-Mar-05 10:57
Larsson2-Mar-05 10:57 
GeneralRe: Error? Pin
Ravi Bhavnani2-Mar-05 11:01
professionalRavi Bhavnani2-Mar-05 11:01 
GeneralRe: Error? Pin
Larsson2-Mar-05 11:06
Larsson2-Mar-05 11:06 
GeneralRe: Error? Pin
Christian Graus2-Mar-05 11:07
protectorChristian Graus2-Mar-05 11:07 
GeneralRe: Error? Pin
Larsson2-Mar-05 11:10
Larsson2-Mar-05 11:10 
GeneralRe: Error? Pin
Christian Graus2-Mar-05 11:13
protectorChristian Graus2-Mar-05 11:13 
GeneralRe: Error? Pin
David Crow3-Mar-05 2:42
David Crow3-Mar-05 2:42 
The OnInitDialog() method has nothing to do with the problem. Ravi has explained, in detail, what the problem is and how to rectify it. Every control ID referenced in the DoDataExchange() method must also be present in the dialog template. For example:

void CWorkFlowTab::DoDataExchange(CDataExchange* pDX)
{
    CPropertyPage::DoDataExchange(pDX);
    //{{AFX_DATA_MAP(CWorkFlowTab)
    DDX_Control(pDX, IDC_WFS_XB_ACTIVE, m_xbActive);
    DDX_Control(pDX, IDC_WFS_CB_RECIPIENT, m_cbRecipient);
    DDX_Control(pDX, IDC_WFS_CB_MESSAGE, m_cbMessage);
    DDX_Control(pDX, IDC_WFS_XB_COMPL, m_xbCompleted);
    DDX_Control(pDX, IDC_WFS_CB_RECIPIENT2, m_cbRecipient2);
    DDX_Control(pDX, IDC_WFS_CB_MESSAGE2, m_cbMessage2);
    //}}AFX_DATA_MAP
}
If any of the six IDC_xxx controls are missing from the dialog template (in the .rc file), I will get a run-time error such as the one you got.


"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


AnswerRe: Error? Pin
Antony M Kancidrowski2-Mar-05 11:23
Antony M Kancidrowski2-Mar-05 11:23 
GeneralRe: Error? Pin
Larsson2-Mar-05 11:37
Larsson2-Mar-05 11:37 
GeneralRe: Error? Pin
Christian Graus2-Mar-05 11:55
protectorChristian Graus2-Mar-05 11:55 
GeneralRe: Error? Pin
Larsson2-Mar-05 12:01
Larsson2-Mar-05 12:01 
GeneralRe: Error? Pin
Christian Graus2-Mar-05 12:05
protectorChristian Graus2-Mar-05 12:05 
GeneralRe: Error? Pin
Larsson2-Mar-05 12:08
Larsson2-Mar-05 12:08 
GeneralRe: Error? Pin
Larsson2-Mar-05 12:05
Larsson2-Mar-05 12:05 
GeneralHelp!! Drawing a text using DrawText on the from and Changing CRect of form according the Text. Pin
VikramDelhi2-Mar-05 10:19
VikramDelhi2-Mar-05 10:19 
GeneralRe: Help!! Drawing a text using DrawText on the from and Changing CRect of form according the Text. Pin
Ravi Bhavnani2-Mar-05 10:50
professionalRavi Bhavnani2-Mar-05 10:50 
GeneralSimple Chat Program Pin
rct233332-Mar-05 10:02
rct233332-Mar-05 10:02 
GeneralRe: Simple Chat Program Pin
Ravi Bhavnani2-Mar-05 10:51
professionalRavi Bhavnani2-Mar-05 10:51 
GeneralRe: Simple Chat Program Pin
rct233332-Mar-05 11:12
rct233332-Mar-05 11:12 
GeneralRe: Simple Chat Program Pin
Ravi Bhavnani2-Mar-05 12:47
professionalRavi Bhavnani2-Mar-05 12:47 
GeneralRe: Simple Chat Program Pin
ThatsAlok2-Mar-05 18:15
ThatsAlok2-Mar-05 18:15 
QuestionHow to click a bitmap into a bitmap? MFC, Visual C++6 Pin
VogelH2-Mar-05 10:01
professionalVogelH2-Mar-05 10:01 
AnswerRe: How to click a bitmap into a bitmap? MFC, Visual C++6 Pin
Christian Graus2-Mar-05 11:08
protectorChristian Graus2-Mar-05 11:08 
GeneralRe: How to click a bitmap into a bitmap? MFC, Visual C++6 Pin
VogelH2-Mar-05 21:31
professionalVogelH2-Mar-05 21:31 

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.